컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 구문 분석ExampleV2
#include <parsing_ops.h>
tf.Example proto의 벡터(문자열)를 형식화된 텐서로 변환합니다.
요약
인수:
- 범위: 범위 개체
- 직렬화됨(serialized): 직렬화된 이진 예제 proto를 포함하는 스칼라 또는 벡터입니다.
- names: 직렬화된 proto의 이름을 포함하는 텐서입니다.
serialized
텐서와 1:1로 대응합니다. 예를 들어 해당 직렬화된 proto에 대한 테이블 키(설명) 이름이 포함될 수 있습니다. 이는 디버깅 목적으로만 유용하며 여기에 값이 있어도 출력에는 영향을 미치지 않습니다. 이름이 없으면 빈 벡터일 수도 있습니다. 비어 있지 않은 경우 이 텐서는 "직렬화된" 것과 동일한 모양을 가져야 합니다. - sparse_keys: 문자열의 벡터입니다. 희소 값과 관련된 예제 기능에서 예상되는 키입니다.
- density_keys: 문자열의 벡터입니다. 조밀한 값과 관련된 예제의 기능에서 예상되는 키입니다.
- ragged_keys: 문자열의 벡터입니다. 비정형 값과 관련된 예제 기능에서 예상되는 키입니다.
- density_defaults: Tensor 목록(일부는 비어 있을 수 있음)
dense_keys
와 1:1에 해당합니다. dark_defaults[j]는 예제의 feature_map에density_key[j]가 없을 때 기본값을 제공합니다. density_defaults[j]에 대해 빈 Tensor 가 제공되는 경우,density_keys[j] 기능이 필요합니다. 입력 유형은 비어 있는 경우에도density_defaults[j]에서 추론됩니다. density_defaults[j]가 비어 있지 않고,density_shapes[j]가 완전히 정의된 경우,density_defaults[j]의 모양은density_shapes[j]의 모양과 일치해야 합니다. density_shapes[j]에 정의되지 않은 주요 차원(가변 보폭 밀집 특성)이 있는 경우,density_defaults[j]에는 패딩 요소라는 단일 요소가 포함되어야 합니다. - num_sparse: 희소 키 수입니다.
- sparse_types:
num_sparse
유형 목록입니다. sparse_keys에 제공된 각 기능의 데이터 유형입니다. 현재 ParseExample 은 DT_FLOAT(FloatList), DT_INT64(Int64List) 및 DT_STRING(BytesList)을 지원합니다. - ragged_value_types:
num_ragged
유형 목록입니다. ragged_keys(여기서 num_ragged = sparse_keys.size()
)에 제공된 각 기능의 데이터 유형입니다. 현재 ParseExample 은 DT_FLOAT(FloatList), DT_INT64(Int64List) 및 DT_STRING(BytesList)을 지원합니다. - ragged_split_types:
num_ragged
유형 목록입니다. ragged_keys(여기서 num_ragged = sparse_keys.size()
)에 지정된 각 기능의 row_splits 데이터 유형입니다. DT_INT32 또는 DT_INT64일 수 있습니다. - density_shapes:
num_dense
모양의 목록입니다. density_keys(여기서 num_dense = dense_keys.size()
)에 지정된 각 기능의 데이터 모양입니다. density_key[j]에 해당하는 지형지물 요소 수는 항상density_shapes[j].NumEntries()와 같아야 합니다. density_shapes[j] == (D0, D1, ..., DN)이면 출력 Tensordensity_values [j]의 모양은 (|serialized|, D0, D1, ..., DN)입니다. 밀집된 출력은 다음과 같습니다. 입력이 일괄적으로 행으로 쌓입니다. 이는 dark_shapes[j] = (-1, D1, ..., DN)에 적용됩니다. 이 경우 출력 Tensordens_values [j]의 모양은 (|serialized|, M, D1, .., DN)이 됩니다. 여기서 M은 길이가 D1 * .... * DN인 요소의 최대 블록 수입니다. , 입력의 모든 미니 배치 항목에 걸쳐. 길이가 D1 * ... * DN인 요소 블록이 M개 미만인 미니배치 항목 은 두 번째 차원을 따라 해당 default_value 스칼라 요소로 채워집니다.
보고:
-
OutputList
sparse_indices -
OutputList
sparse_values -
OutputList
sparse_shapes -
OutputList
밀도_값 -
OutputList
비정형 값 -
OutputList
ragged_row_splits
생성자와 소멸자 |
---|
ParseExampleV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input names, :: tensorflow::Input sparse_keys, :: tensorflow::Input dense_keys, :: tensorflow::Input ragged_keys, :: tensorflow::InputList dense_defaults, int64 num_sparse, const DataTypeSlice & sparse_types, const DataTypeSlice & ragged_value_types, const DataTypeSlice & ragged_split_types, const gtl::ArraySlice< PartialTensorShape > & dense_shapes) |
공개 속성
공공 기능
구문 분석ExampleV2
ParseExampleV2(
const ::tensorflow::Scope & scope,
::tensorflow::Input serialized,
::tensorflow::Input names,
::tensorflow::Input sparse_keys,
::tensorflow::Input dense_keys,
::tensorflow::Input ragged_keys,
::tensorflow::InputList dense_defaults,
int64 num_sparse,
const DataTypeSlice & sparse_types,
const DataTypeSlice & ragged_value_types,
const DataTypeSlice & ragged_split_types,
const gtl::ArraySlice< PartialTensorShape > & dense_shapes
)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::ParseExampleV2 Class Reference\n\ntensorflow::ops::ParseExampleV2\n===============================\n\n`#include \u003cparsing_ops.h\u003e`\n\nTransforms a vector of tf.Example protos (as strings) into typed tensors.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- serialized: A scalar or vector containing binary serialized Example protos.\n- names: A tensor containing the names of the serialized protos. Corresponds 1:1 with the `serialized` tensor. May contain, for example, table key (descriptive) names for the corresponding serialized protos. These are purely useful for debugging purposes, and the presence of values here has no effect on the output. May also be an empty vector if no names are available. If non-empty, this tensor must have the same shape as \"serialized\".\n- sparse_keys: Vector of strings. The keys expected in the Examples' features associated with sparse values.\n- dense_keys: Vector of strings. The keys expected in the Examples' features associated with dense values.\n- ragged_keys: Vector of strings. The keys expected in the Examples' features associated with ragged values.\n- dense_defaults: A list of Tensors (some may be empty). Corresponds 1:1 with `dense_keys`. dense_defaults\\[j\\] provides default values when the example's feature_map lacks dense_key\\[j\\]. If an empty [Tensor](/versions/r2.1/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) is provided for dense_defaults\\[j\\], then the Feature dense_keys\\[j\\] is required. The input type is inferred from dense_defaults\\[j\\], even when it's empty. If dense_defaults\\[j\\] is not empty, and dense_shapes\\[j\\] is fully defined, then the shape of dense_defaults\\[j\\] must match that of dense_shapes\\[j\\]. If dense_shapes\\[j\\] has an undefined major dimension (variable strides dense feature), dense_defaults\\[j\\] must contain a single element: the padding element.\n- num_sparse: The number of sparse keys.\n- sparse_types: A list of `num_sparse` types; the data types of data in each Feature given in sparse_keys. Currently the [ParseExample](/versions/r2.1/api_docs/cc/class/tensorflow/ops/parse-example#classtensorflow_1_1ops_1_1_parse_example) supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).\n- ragged_value_types: A list of `num_ragged` types; the data types of data in each Feature given in ragged_keys (where `num_ragged = sparse_keys.size()`). Currently the [ParseExample](/versions/r2.1/api_docs/cc/class/tensorflow/ops/parse-example#classtensorflow_1_1ops_1_1_parse_example) supports DT_FLOAT (FloatList), DT_INT64 (Int64List), and DT_STRING (BytesList).\n- ragged_split_types: A list of `num_ragged` types; the data types of row_splits in each Feature given in ragged_keys (where `num_ragged = sparse_keys.size()`). May be DT_INT32 or DT_INT64.\n- dense_shapes: A list of `num_dense` shapes; the shapes of data in each Feature given in dense_keys (where `num_dense = dense_keys.size()`). The number of elements in the Feature corresponding to dense_key\\[j\\] must always equal dense_shapes\\[j\\].NumEntries(). If dense_shapes\\[j\\] == (D0, D1, ..., DN) then the shape of output [Tensor](/versions/r2.1/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) dense_values\\[j\\] will be (\\|serialized\\|, D0, D1, ..., DN): The dense outputs are just the inputs row-stacked by batch. This works for dense_shapes\\[j\\] = (-1, D1, ..., DN). In this case the shape of the output [Tensor](/versions/r2.1/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) dense_values\\[j\\] will be (\\|serialized\\|, M, D1, .., DN), where M is the maximum number of blocks of elements of length D1 \\* .... \\* DN, across all minibatch entries in the input. [Any](/versions/r2.1/api_docs/cc/class/tensorflow/ops/any#classtensorflow_1_1ops_1_1_any) minibatch entry with less than M blocks of elements of length D1 \\* ... \\* DN will be padded with the corresponding default_value scalar element along the second dimension.\n\n\u003cbr /\u003e\n\nReturns:\n\n- `OutputList` sparse_indices\n- `OutputList` sparse_values\n- `OutputList` sparse_shapes\n- `OutputList` dense_values\n- `OutputList` ragged_values\n- `OutputList` ragged_row_splits\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ParseExampleV2](#classtensorflow_1_1ops_1_1_parse_example_v2_1ab4e11094ad7703df99aa576d6ad67425)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` serialized, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` names, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_keys, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` dense_keys, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` ragged_keys, ::`[tensorflow::InputList](/versions/r2.1/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` dense_defaults, int64 num_sparse, const DataTypeSlice & sparse_types, const DataTypeSlice & ragged_value_types, const DataTypeSlice & ragged_split_types, const gtl::ArraySlice\u003c PartialTensorShape \u003e & dense_shapes)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|\n| [dense_values](#classtensorflow_1_1ops_1_1_parse_example_v2_1a470bd99f28093905ebb2729aa4cedce6) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [operation](#classtensorflow_1_1ops_1_1_parse_example_v2_1a514d8b2a197c9df22325d12a3b74a46f) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [ragged_row_splits](#classtensorflow_1_1ops_1_1_parse_example_v2_1a295efa8fb5cdb697c1ebcef3906c9e78) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [ragged_values](#classtensorflow_1_1ops_1_1_parse_example_v2_1a67d9cc60e2546f180462bf8f61299b41) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [sparse_indices](#classtensorflow_1_1ops_1_1_parse_example_v2_1a0c78755e58595fadb6b7989979fbd03e) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [sparse_shapes](#classtensorflow_1_1ops_1_1_parse_example_v2_1a272ff8e836298c301eb6694d25fb070d) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n| [sparse_values](#classtensorflow_1_1ops_1_1_parse_example_v2_1a6b6a124a63884bcf1a02968c7caf0073) | `::`[tensorflow::OutputList](/versions/r2.1/api_docs/cc/group/core#group__core_1gab449e6a3abd500c2f4ea93f9e89ba96c) |\n\nPublic attributes\n-----------------\n\n### dense_values\n\n```scdoc\n::tensorflow::OutputList dense_values\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\n### ragged_row_splits\n\n```scdoc\n::tensorflow::OutputList ragged_row_splits\n``` \n\n### ragged_values\n\n```scdoc\n::tensorflow::OutputList ragged_values\n``` \n\n### sparse_indices\n\n```scdoc\n::tensorflow::OutputList sparse_indices\n``` \n\n### sparse_shapes\n\n```scdoc\n::tensorflow::OutputList sparse_shapes\n``` \n\n### sparse_values\n\n```scdoc\n::tensorflow::OutputList sparse_values\n``` \n\nPublic functions\n----------------\n\n### ParseExampleV2\n\n```gdscript\n ParseExampleV2(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input serialized,\n ::tensorflow::Input names,\n ::tensorflow::Input sparse_keys,\n ::tensorflow::Input dense_keys,\n ::tensorflow::Input ragged_keys,\n ::tensorflow::InputList dense_defaults,\n int64 num_sparse,\n const DataTypeSlice & sparse_types,\n const DataTypeSlice & ragged_value_types,\n const DataTypeSlice & ragged_split_types,\n const gtl::ArraySlice\u003c PartialTensorShape \u003e & dense_shapes\n)\n```"]]