dòng chảy :: hoạt động :: ParseSingleSequenceExample
#include <parsing_ops.h>
Biến đổi một bộ não vô hướng.
Bản tóm tắt
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- tuần tự hóa: Một đại lượng vô hướng chứa một proto SequenceExample được tuần tự hóa nhị phân.
- feature_list_dense_missing_assumed_empty: Một vectơ liệt kê các khóa FeatureList có thể bị thiếu trong SequenceExample. Nếu FeatureList liên quan bị thiếu, nó được coi là trống. Theo mặc định, mọi FeatureList không được liệt kê trong vectơ này phải tồn tại trong SequenceExample.
- context_sparse_keys: Một danh sách các chuỗi Ncontext_sparse Tensors (vô hướng). Các khóa được mong đợi trong các tính năng của Ví dụ được liên kết với các giá trị context_sparse.
- context_dense_keys: Danh sách chuỗi Ncontext_dense Tensors (vô hướng). Các khóa được mong đợi trong các tính năng ngữ cảnh của SequenceExamples được liên kết với các giá trị dày đặc.
- feature_list_sparse_keys: Một danh sách các chuỗi Nfeature_list_sparse Tensors (vô hướng). Các khóa được mong đợi trong FeatureLists được liên kết với các giá trị thưa thớt.
- feature_list_dense_keys: Một danh sách các chuỗi Nfeature_list_dense Tensors (vô hướng). Các khóa được mong đợi trong feature_lists của SequenceExamples được liên kết với danh sách các giá trị dày đặc.
- context_dense_defaults: Danh sách các Tensors Ncontext_dense (một số có thể trống). context_dense_defaults [j] cung cấp các giá trị mặc định khi bản đồ ngữ cảnh của SequenceExample thiếu context_dense_key [j]. Nếu Tensor trống được cung cấp cho context_dense_defaults [j], thì Feature context_dense_keys [j] là bắt buộc. Loại đầu vào được suy ra từ context_dense_defaults [j], ngay cả khi nó trống. Nếu context_dense_defaults [j] không trống, thì hình dạng của nó phải khớp với context_dense_shapes [j].
- debug_name: Một đại lượng vô hướng chứa tên của proto được tuần tự hóa. Có thể chứa, ví dụ, tên khóa bảng (mô tả) cho proto được tuần tự hóa tương ứng. Điều này hoàn toàn hữu ích cho mục đích gỡ lỗi và sự hiện diện của các giá trị ở đây không ảnh hưởng đến đầu ra. Cũng có thể là một vô hướng trống nếu không có tên.
Các thuộc tính tùy chọn (xem Attrs
):
- context_sparse_types: Danh sách các kiểu Ncontext_sparse; các kiểu dữ liệu của dữ liệu trong mỗi ngữ cảnh Tính năng được cung cấp trong context_sparse_keys. Hiện tại, ParseSingleSequenceExample hỗ trợ DT_FLOAT (FloatList), DT_INT64 (Int64List) và DT_STRING (BytesList).
- context_dense_shapes: 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 cung cấp trong context_dense_keys. Số phần tử trong Tính nă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].
- feature_list_sparse_types: 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).
- feature_list_dense_shapes: 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 mỗi Đối tượ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 ().
Lợi nhuận:
-
OutputList
context_sparse_indices -
OutputList
context_sparse_values -
OutputList
context_sparse_shapes -
OutputList
context_dense_values -
OutputList
feature_list_sparse_indices -
OutputList
feature_list_sparse_values -
OutputList
feature_list_sparse_shapes -
OutputList
feature_list_dense_values
Người xây dựng và Người phá hủy | |
---|---|
ParseSingleSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_sparse_keys, :: tensorflow::InputList context_dense_keys, :: tensorflow::InputList feature_list_sparse_keys, :: tensorflow::InputList feature_list_dense_keys, :: tensorflow::InputList context_dense_defaults, :: tensorflow::Input debug_name) | |
ParseSingleSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input feature_list_dense_missing_assumed_empty, :: tensorflow::InputList context_sparse_keys, :: tensorflow::InputList context_dense_keys, :: tensorflow::InputList feature_list_sparse_keys, :: tensorflow::InputList feature_list_dense_keys, :: tensorflow::InputList context_dense_defaults, :: tensorflow::Input debug_name, const ParseSingleSequenceExample::Attrs & attrs) |
Các chức năng tĩnh công khai | |
---|---|
ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
ContextSparseTypes (const DataTypeSlice & x) | |
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
FeatureListDenseTypes (const DataTypeSlice & x) | |
FeatureListSparseTypes (const DataTypeSlice & x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: ParseSingleSequenceExample :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho ParseSingleSequenceExample . |
Thuộc tính công cộng
context_dense_values
::tensorflow::OutputList context_dense_values
context_sparse_indices
::tensorflow::OutputList context_sparse_indices
context_sparse_shapes
::tensorflow::OutputList context_sparse_shapes
context_sparse_values
::tensorflow::OutputList context_sparse_values
feature_list_dense_values
::tensorflow::OutputList feature_list_dense_values
feature_list_sparse_indices
::tensorflow::OutputList feature_list_sparse_indices
feature_list_sparse_shapes
::tensorflow::OutputList feature_list_sparse_shapes
feature_list_sparse_values
::tensorflow::OutputList feature_list_sparse_values
hoạt động
Operation operation
Chức năng công cộng
ParseSingleSequenceExample
ParseSingleSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input feature_list_dense_missing_assumed_empty, ::tensorflow::InputList context_sparse_keys, ::tensorflow::InputList context_dense_keys, ::tensorflow::InputList feature_list_sparse_keys, ::tensorflow::InputList feature_list_dense_keys, ::tensorflow::InputList context_dense_defaults, ::tensorflow::Input debug_name )
ParseSingleSequenceExample
ParseSingleSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input feature_list_dense_missing_assumed_empty, ::tensorflow::InputList context_sparse_keys, ::tensorflow::InputList context_dense_keys, ::tensorflow::InputList feature_list_sparse_keys, ::tensorflow::InputList feature_list_dense_keys, ::tensorflow::InputList context_dense_defaults, ::tensorflow::Input debug_name, const ParseSingleSequenceExample::Attrs & attrs )
Các chức năng tĩnh công khai
ContextDenseShapes
Attrs ContextDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
ContextSparseTypes
Attrs ContextSparseTypes( const DataTypeSlice & x )
FeatureListDenseShapes
Attrs FeatureListDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
FeatureListDenseTypes
Attrs FeatureListDenseTypes( const DataTypeSlice & x )
FeatureListSparseTypes
Attrs FeatureListSparseTypes( const DataTypeSlice & x )