Stay organized with collections
Save and categorize content based on your preferences.
#include <nn_ops.h>
Returns the dimension index in the destination data format given the one in.
Summary
the source data format.
Args:
- scope: A Scope object
- x: A Tensor with each element as a dimension index in source data format. Must be in the range [-4, 4).
Optional attributes (see Attrs
):
- src_format: source data format.
- dst_format: destination data format.
Returns:
Output
: A Tensor with each element as a dimension index in destination data format.
Public attributes
Public functions
Public static functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tensorflow::ops::DataFormatDimMap Class Reference\n\ntensorflow::ops::DataFormatDimMap\n=================================\n\n`#include \u003cnn_ops.h\u003e`\n\nReturns the dimension index in the destination data format given the one in.\n\nSummary\n-------\n\nthe source data format.\n\nArgs:\n\n- scope: A [Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- x: A [Tensor](/versions/r2.14/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with each element as a dimension index in source data format. Must be in the range \\[-4, 4).\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs#structtensorflow_1_1ops_1_1_data_format_dim_map_1_1_attrs)):\n\n- src_format: source data format.\n- dst_format: destination data format.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/versions/r2.14/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) with each element as a dimension index in destination data format.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [DataFormatDimMap](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a940ff2efc55cc98716eff22bd5169e62)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` x)` ||\n| [DataFormatDimMap](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a777da26710837763c75921455aba5ddc)`(const ::`[tensorflow::Scope](/versions/r2.14/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.14/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` x, const `[DataFormatDimMap::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs#structtensorflow_1_1ops_1_1_data_format_dim_map_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a35705e5ab8f763439369ba015fe6e6dd) | [Operation](/versions/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [y](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a238392a1475522186dd4349a086e7616) | `::`[tensorflow::Output](/versions/r2.14/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a7e7cb21492d0b95b81e81c35c464a2f7)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a9f826ae3e4dcfde21a0f3d0be8f6dd7d)`() const ` | |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a4952830e7df82cbaf6d8cae075938f89)`() const ` | |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [DstFormat](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a5df6304afeba4726500529df347ea2f5)`(StringPiece x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs#structtensorflow_1_1ops_1_1_data_format_dim_map_1_1_attrs) |\n| [SrcFormat](#classtensorflow_1_1ops_1_1_data_format_dim_map_1a7a5893b6eea8561444a973fc16dd7bd6)`(StringPiece x)` | [Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs#structtensorflow_1_1ops_1_1_data_format_dim_map_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::DataFormatDimMap::Attrs](/versions/r2.14/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs) | Optional attribute setters for [DataFormatDimMap](/versions/r2.14/api_docs/cc/class/tensorflow/ops/data-format-dim-map#classtensorflow_1_1ops_1_1_data_format_dim_map). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### y\n\n```text\n::tensorflow::Output y\n``` \n\nPublic functions\n----------------\n\n### DataFormatDimMap\n\n```gdscript\n DataFormatDimMap(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input x\n)\n``` \n\n### DataFormatDimMap\n\n```gdscript\n DataFormatDimMap(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input x,\n const DataFormatDimMap::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### DstFormat\n\n```text\nAttrs DstFormat(\n StringPiece x\n)\n``` \n\n### SrcFormat\n\n```text\nAttrs SrcFormat(\n StringPiece x\n)\n```"]]