تينسورفلو :: العمليات :: مثال على تسلسل واحد
#include <parsing_ops.h>
يحول دماغًا عدديًا ، مثال على التسلسل الأولي (مثل السلاسل) إلى موترات مكتوبة.
ملخص
الحجج:
- النطاق: كائن النطاق
- متسلسل: عددي يحتوي على مثال أولي متسلسل ثنائي متسلسل.
- feature_list_dense_missing_assumed_empty: متجه يسرد مفاتيح FeatureList التي قد تكون مفقودة من SequenceExample. إذا كانت FeatureList المقترنة مفقودة ، فسيتم التعامل معها على أنها فارغة. بشكل افتراضي ، يجب أن توجد أي قائمة FeatureList غير مدرجة في هذا المتجه في SequenceExample.
- Context_sparse_keys: قائمة Ncontext_sparse string Tensors (scalars). المفاتيح المتوقعة في ميزات الأمثلة المرتبطة بقيم Context_sparse.
- Context_dense_keys: قائمة Ncontext_dense string Tensors (scalars). المفاتيح المتوقعة في ميزات سياق SequenceExamples المرتبطة بقيم كثيفة.
- feature_list_sparse_keys: قائمة موتر سلسلة Nfeature_list_sparse (مقاسات). المفاتيح المتوقعة في قوائم الميزات المرتبطة بقيم متفرقة.
- feature_list_dense_keys: قائمة موترات سلسلة Nfeature_list_dense (مقاسات). المفاتيح المتوقعة في SequenceExamples 'feature_lists المرتبطة بقوائم القيم الكثيفة.
- Context_dense_defaults: قائمة Ncontext_dense Tensors (قد يكون بعضها فارغًا). Context_dense_defaults [j] يوفر القيم الافتراضية عندما تفتقر خريطة سياق SequenceExample إلى Context_dense_key [j]. إذا تم توفير Tensor فارغًا من أجل Context_dense_defaults [j] ، عندئذٍ تكون ميزة Context_dense_keys [j] مطلوبة. يتم الاستدلال على نوع الإدخال من Context_dense_defaults [j] ، حتى عندما تكون فارغة. إذا لم يكن Context_dense_defaults [j] فارغًا ، فيجب أن يتطابق شكله مع Context_dense_shapes [j].
- debug_name: عددية تحتوي على اسم الأولي المتسلسل. قد يحتوي ، على سبيل المثال ، اسم مفتاح الجدول (وصفي) للبروت المتسلسل المقابل. هذا مفيد تمامًا لأغراض التصحيح ، ولا يؤثر وجود القيم هنا على الإخراج. قد يكون أيضًا عددًا فارغًا إذا لم يتوفر اسم.
السمات الاختيارية (انظر Attrs
):
- Context_sparse_types: قائمة بأنواع Ncontext_sparse ؛ أنواع البيانات من البيانات في كل سياق الميزة المعطاة في Context_sparse_keys. حاليا ParseSingleSequenceExample يدعم DT_FLOAT (FloatList)، DT_INT64 (Int64List)، وDT_STRING (BytesList).
- Context_dense_shapes: قائمة بأشكال Ncontext_dense؛ أشكال البيانات في كل سياق الميزة المعطاة في Context_dense_keys. يجب أن يساوي عدد العناصر في الميزة المقابلة لـ Context_dense_key [j] دائمًا Context_dense_shapes [j] .NumEntries (). سيتطابق شكل Context_dense_values [j] مع Context_dense_shapes [j].
- feature_list_sparse_types: قائمة بأنواع Nfeature_list_sparse ؛ أنواع البيانات من البيانات في كل قائمة FeatureList الواردة في feature_list_sparse_keys. حاليا ParseSingleSequenceExample يدعم DT_FLOAT (FloatList)، DT_INT64 (Int64List)، وDT_STRING (BytesList).
- feature_list_dense_shapes: قائمة بأشكال Nfeature_list_dense ؛ أشكال البيانات في كل FeatureList الواردة في feature_list_dense_keys. يجب أن يتساوى شكل كل ميزة في FeatureList المطابقة لـ feature_list_dense_key [j] دائمًا مع feature_list_dense_shapes [j] .NumEntries ().
عائدات:
-
OutputList
-
OutputList
-
OutputList
-
OutputList
-
OutputList
feature_list_sparse_indices -
OutputList
feature_list_sparse_values -
OutputList
feature_list_sparse_shapes -
OutputList
feature_list_dense_values
البنائين والمدمرين | |
---|---|
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) |
وظائف ثابتة عامة | |
---|---|
ContextDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
ContextSparseTypes (const DataTypeSlice & x) | |
FeatureListDenseShapes (const gtl::ArraySlice< PartialTensorShape > & x) | |
FeatureListDenseTypes (const DataTypeSlice & x) | |
FeatureListSparseTypes (const DataTypeSlice & x) |
الهياكل | |
---|---|
tensorflow :: ops :: ParseSingleSequenceExample :: Attrs | محددات السمات الاختيارية لـ ParseSingleSequenceExample . |
السمات العامة
قيم_السياق
::tensorflow::OutputList context_dense_values
مؤشرات_السياق
::tensorflow::OutputList context_sparse_indices
السياق_الشتاء_الأشكال
::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
عملية
Operation operation
الوظائف العامة
مثال على تسلسل واحد
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 )
وظائف ثابتة عامة
السياق كثيفة الأشكال
Attrs ContextDenseShapes( const gtl::ArraySlice< PartialTensorShape > & x )
السياق
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 )
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.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]