W3cubDocs

/TensorFlow C++

tensorflow::ops::DataFormatDimMap::Attrs

#include <nn_ops.h>

Optional attribute setters for DataFormatDimMap.

Summary

Public attributes
dst_format_ = "NCHW"
StringPiece
src_format_ = "NHWC"
StringPiece
Public functions
DstFormat(StringPiece x)
TF_MUST_USE_RESULT Attrs
destination data format.
SrcFormat(StringPiece x)
TF_MUST_USE_RESULT Attrs
source data format.

Public attributes

dst_format_

StringPiece tensorflow::ops::DataFormatDimMap::Attrs::dst_format_ = "NCHW"

src_format_

StringPiece tensorflow::ops::DataFormatDimMap::Attrs::src_format_ = "NHWC"

Public functions

DstFormat

TF_MUST_USE_RESULT Attrs tensorflow::ops::DataFormatDimMap::Attrs::DstFormat(
  StringPiece x
)

destination data format.

Defaults to "NCHW"

SrcFormat

TF_MUST_USE_RESULT Attrs tensorflow::ops::DataFormatDimMap::Attrs::SrcFormat(
  StringPiece x
)

source data format.

Defaults to "NHWC"

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs.html