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.
dòng chảy căng:: ôi:: ParseSingleSequenceVí dụ:: Attr
#include <parsing_ops.h>
Trình thiết lập thuộc tính tùy chọn cho ParseSingleSequenceExample .
Bản tóm tắt
Chức năng công cộng |
---|
ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | Danh sách các hình dạng Ncontext_dense; hình dạng của dữ liệu trong từng ngữ cảnh Tính năng được đưa ra trong context_dense_keys. |
ContextSparseTypes (const DataTypeSlice & x) | Danh sách các loại Ncontext_sparse; các kiểu dữ liệu của dữ liệu trong từng ngữ cảnh Tính năng được đưa ra trong context_sparse_keys. |
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | Danh sách các hình dạng Nfeature_list_dense; hình dạng của dữ liệu trong mỗi FeatureList được cung cấp trong feature_list_dense_keys. |
FeatureListDenseTypes (const DataTypeSlice & x) | Mặc định là []. |
FeatureListSparseTypes (const DataTypeSlice & x) | Danh sách các loại Nfeature_list_sparse; các kiểu dữ liệu của dữ liệu trong mỗi FeatureList được cung cấp trong feature_list_sparse_keys. |
Thuộc tính công khai
bối cảnh_dense_shapes_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::ParseSingleSequenceExample::Attrs::context_dense_shapes_ = {}
bối cảnh_sparse_types_
DataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::context_sparse_types_ = {}
feature_list_dense_shapes_
gtl::ArraySlice< PartialTensorShape > tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_dense_shapes_ = {}
feature_list_dense_types_
DataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_dense_types_ = {}
feature_list_sparse_types_
DataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_sparse_types_ = {}
Chức năng công cộng
Bối cảnhDày đặcHình dạng
TF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::ContextDenseShapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
Danh sách các hình dạng Ncontext_dense; hình dạng của dữ liệu trong từng ngữ cảnh Tính năng được đưa ra trong context_dense_keys.
Số phần tử trong Đối tượng tương ứng với context_dense_key[j] phải luôn bằng context_dense_shapes[j].NumEntries(). Hình dạng của context_dense_values[j] sẽ khớp với context_dense_shapes[j].
Mặc định là []
Bối cảnhCác loại thưa thớt
TF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::ContextSparseTypes(
const DataTypeSlice & x
)
Danh sách các loại Ncontext_sparse; các kiểu dữ liệu của dữ liệu trong từng ngữ cảnh Tính năng được đưa ra trong context_sparse_keys.
Hiện tại ParseSingleSequenceExample hỗ trợ DT_FLOAT (FloatList), DT_INT64 (Int64List) và DT_STRING (BytesList).
Mặc định là []
Danh sách tính năngDenseShapes
TF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListDenseShapes(
const gtl::ArraySlice< PartialTensorShape > & x
)
Danh sách các hình dạng Nfeature_list_dense; hình dạng của dữ liệu trong mỗi FeatureList được cung cấp trong feature_list_dense_keys.
Hình dạng của từng Tính năng trong FeatureList tương ứng với feature_list_dense_key[j] phải luôn bằng feature_list_dense_shapes[j].NumEntries().
Mặc định là []
Danh sách tính năngDenseTypes
TF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListDenseTypes(
const DataTypeSlice & x
)
Danh sách tính năngSparseTypes
TF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListSparseTypes(
const DataTypeSlice & x
)
Danh sách các loại Nfeature_list_sparse; các kiểu dữ liệu của dữ liệu trong mỗi FeatureList được cung cấp trong feature_list_sparse_keys.
Hiện tại ParseSingleSequenceExample hỗ trợ DT_FLOAT (FloatList), DT_INT64 (Int64List) và DT_STRING (BytesList).
Mặc định là []
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-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::ParseSingleSequenceExample::Attrs Struct Reference\n\ntensorflow::ops::ParseSingleSequenceExample::Attrs\n==================================================\n\n`#include \u003cparsing_ops.h\u003e`\n\nOptional attribute setters for [ParseSingleSequenceExample](/versions/r2.2/api_docs/cc/class/tensorflow/ops/parse-single-sequence-example#classtensorflow_1_1ops_1_1_parse_single_sequence_example).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------|\n| [context_dense_shapes_](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1aad6cf7ae31b934dfd2dc13eb9a0746b1)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [context_sparse_types_](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1ab4cc9eb58ab4b73d4baa2ee7721925d3)` = {}` | `DataTypeSlice` |\n| [feature_list_dense_shapes_](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1ac0462913f68045800f9892d642a142db)` = {}` | `gtl::ArraySlice\u003c PartialTensorShape \u003e` |\n| [feature_list_dense_types_](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a09b0af32b56ac1f1b3907fa5fa67383d)` = {}` | `DataTypeSlice` |\n| [feature_list_sparse_types_](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a60f5d2f4edbff448927f6455c2593173)` = {}` | `DataTypeSlice` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ContextDenseShapes](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a9f211888be3f7b9599c57a531ef7cbeb)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/parse-single-sequence-example/attrs#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs) A list of Ncontext_dense shapes; the shapes of data in each context Feature given in context_dense_keys. |\n| [ContextSparseTypes](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a02578158d61d785ebfbaa3f88d570ca2)`(const DataTypeSlice & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/parse-single-sequence-example/attrs#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs) A list of Ncontext_sparse types; the data types of data in each context Feature given in context_sparse_keys. |\n| [FeatureListDenseShapes](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a6d40ff38a7db6e3596d5fba41580a664)`(const gtl::ArraySlice\u003c PartialTensorShape \u003e & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/parse-single-sequence-example/attrs#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs) A list of Nfeature_list_dense shapes; the shapes of data in each FeatureList given in feature_list_dense_keys. |\n| [FeatureListDenseTypes](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1ad2db3e1309899be6fbf45b1182c38df5)`(const DataTypeSlice & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/parse-single-sequence-example/attrs#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs) Defaults to \\[\\]. |\n| [FeatureListSparseTypes](#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs_1a0cff011782eef4d4792b5254c0390b36)`(const DataTypeSlice & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/parse-single-sequence-example/attrs#structtensorflow_1_1ops_1_1_parse_single_sequence_example_1_1_attrs) A list of Nfeature_list_sparse types; the data types of data in each FeatureList given in feature_list_sparse_keys. |\n\nPublic attributes\n-----------------\n\n### context_dense_shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::ParseSingleSequenceExample::Attrs::context_dense_shapes_ = {}\n``` \n\n### context_sparse_types_\n\n```carbon\nDataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::context_sparse_types_ = {}\n``` \n\n### feature_list_dense_shapes_\n\n```scdoc\ngtl::ArraySlice\u003c PartialTensorShape \u003e tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_dense_shapes_ = {}\n``` \n\n### feature_list_dense_types_\n\n```carbon\nDataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_dense_types_ = {}\n``` \n\n### feature_list_sparse_types_\n\n```carbon\nDataTypeSlice tensorflow::ops::ParseSingleSequenceExample::Attrs::feature_list_sparse_types_ = {}\n``` \n\nPublic functions\n----------------\n\n### ContextDenseShapes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::ContextDenseShapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nA list of Ncontext_dense shapes; the shapes of data in each context Feature given in context_dense_keys.\n\nThe number of elements in the Feature corresponding to context_dense_key\\[j\\] must always equal context_dense_shapes\\[j\\].NumEntries(). The shape of context_dense_values\\[j\\] will match context_dense_shapes\\[j\\].\n\nDefaults to \\[\\] \n\n### ContextSparseTypes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::ContextSparseTypes(\n const DataTypeSlice & x\n)\n``` \nA list of Ncontext_sparse types; the data types of data in each context Feature given in context_sparse_keys.\n\nCurrently the [ParseSingleSequenceExample](/versions/r2.2/api_docs/cc/class/tensorflow/ops/parse-single-sequence-example#classtensorflow_1_1ops_1_1_parse_single_sequence_example) supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).\n\nDefaults to \\[\\] \n\n### FeatureListDenseShapes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListDenseShapes(\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & x\n)\n``` \nA list of Nfeature_list_dense shapes; the shapes of data in each FeatureList given in feature_list_dense_keys.\n\nThe shape of each Feature in the FeatureList corresponding to feature_list_dense_key\\[j\\] must always equal feature_list_dense_shapes\\[j\\].NumEntries().\n\nDefaults to \\[\\] \n\n### FeatureListDenseTypes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListDenseTypes(\n const DataTypeSlice & x\n)\n``` \nDefaults to \\[\\]. \n\n### FeatureListSparseTypes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::ParseSingleSequenceExample::Attrs::FeatureListSparseTypes(\n const DataTypeSlice & x\n)\n``` \nA list of Nfeature_list_sparse types; the data types of data in each FeatureList given in feature_list_sparse_keys.\n\nCurrently the [ParseSingleSequenceExample](/versions/r2.2/api_docs/cc/class/tensorflow/ops/parse-single-sequence-example#classtensorflow_1_1ops_1_1_parse_single_sequence_example) supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).\n\nDefaults to \\[\\]"]]