Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
#include <nn_ops.h>
Trả về chỉ mục thứ nguyên ở định dạng dữ liệu đích được cung cấp.
Bản tóm tắt
định dạng dữ liệu nguồn.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- x: Một Tensor với mỗi phần tử là chỉ mục thứ nguyên ở định dạng dữ liệu nguồn. Phải nằm trong khoảng [-4, 4).
Thuộc tính tùy chọn (xem Attrs
):
- src_format: định dạng dữ liệu nguồn.
- dst_format: định dạng dữ liệu đích.
Trả về:
-
Output
: Một Tensor với mỗi phần tử là chỉ mục thứ nguyên ở định dạng dữ liệu đích.
Thuộc tính công khai
Chức năng công cộng
Các hàm tĩnh công khai
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 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\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- x: A [Tensor](/versions/r2.2/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.2/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.2/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A [Tensor](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/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.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` x, const `[DataFormatDimMap::Attrs](/versions/r2.2/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.2/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.2/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.2/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.2/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.2/api_docs/cc/struct/tensorflow/ops/data-format-dim-map/attrs) | Optional attribute setters for [DataFormatDimMap](/versions/r2.2/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```"]]