تينسورفلو :: العمليات :: مثال على تسلسل التحليل
#include <parsing_ops.h>
يحول متجه من الدماغ. التسلسل مثال على البروتوس (كسلاسل) إلى موترات مكتوبة.
ملخص
الحجج:
- النطاق: كائن النطاق
- متسلسل: متجه يحتوي على تسلسل ثنائي متسلسل.
- debug_name: متجه يحتوي على أسماء البروتوس المتسلسلة. قد يحتوي ، على سبيل المثال ، اسم مفتاح الجدول (وصفي) للبروت المتسلسل المقابل. هذا مفيد تمامًا لأغراض التصحيح ، ولا يؤثر وجود القيم هنا على الإخراج. قد يكون أيضًا متجهًا فارغًا إذا لم يتوفر اسم.
- 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].
- feature_list_dense_missing_assumed_empty: متجه يسرد مفاتيح FeatureList التي قد تكون مفقودة من SequenceExamples. إذا كانت FeatureList المقترنة مفقودة ، فسيتم التعامل معها على أنها فارغة. بشكل افتراضي ، يجب أن توجد أي قائمة FeatureList غير مدرجة في هذا المتجه في SequenceExamples.
- 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 المرتبطة بقوائم القيم الكثيفة.
السمات الاختيارية (انظر 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 -
OutputList
feature_list_dense_lengths
البنائين والمدمرين | |
---|---|
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys) | |
ParseSequenceExample (const :: tensorflow::Scope & scope, :: tensorflow::Input serialized, :: tensorflow::Input debug_name, :: tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::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) | |
NcontextDense (int64 x) | |
NcontextSparse (int64 x) | |
NfeatureListDense (int64 x) | |
NfeatureListSparse (int64 x) |
الهياكل | |
---|---|
tensorflow :: ops :: ParseSequenceExample :: Attrs | محددات السمات الاختيارية لـ ParseSequenceExample . |
السمات العامة
قيم_السياق
::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_lengths
::tensorflow::OutputList feature_list_dense_lengths
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
الوظائف العامة
مثال على تسلسل التحليل
ParseSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input debug_name, ::tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys )
مثال على تسلسل التحليل
ParseSequenceExample( const ::tensorflow::Scope & scope, ::tensorflow::Input serialized, ::tensorflow::Input debug_name, ::tensorflow::InputList context_dense_defaults, const gtl::ArraySlice< string > & feature_list_dense_missing_assumed_empty, const gtl::ArraySlice< string > & context_sparse_keys, const gtl::ArraySlice< string > & context_dense_keys, const gtl::ArraySlice< string > & feature_list_sparse_keys, const gtl::ArraySlice< string > & feature_list_dense_keys, const ParseSequenceExample::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 )
NcontextDense
Attrs NcontextDense( int64 x )
NcontextSparse
Attrs NcontextSparse( int64 x )
NfeatureListDense
Attrs NfeatureListDense( int64 x )
NfeatureListSparse
Attrs NfeatureListSparse( int64 x )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2022-08-30 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]