تدفق التوتر:: العمليات:: تعديل المسافة:: Attrs
#include <array_ops.h>
محددات السمات الاختيارية لـ EditDistance .
ملخص
الصفات العامة | |
---|---|
normalize_ = true | bool |
الوظائف العامة | |
---|---|
Normalize (bool x) | TF_MUST_USE_RESULT Attrs منطقية (إذا كانت صحيحة، يتم تسوية مسافات التحرير حسب طول الحقيقة). |
الصفات العامة
تطبيع_
bool tensorflow::ops::EditDistance::Attrs::normalize_ = true
الوظائف العامة
تطبيع
TF_MUST_USE_RESULT Attrs tensorflow::ops::EditDistance::Attrs::Normalize( bool x )
منطقية (إذا كانت صحيحة، يتم تسوية مسافات التحرير حسب طول الحقيقة).
الإخراج هو:
الافتراضيات إلى صحيح
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::EditDistance::Attrs Struct Reference\n\ntensorflow::ops::EditDistance::Attrs\n====================================\n\n`#include \u003carray_ops.h\u003e`\n\nOptional attribute setters for [EditDistance](/versions/r2.2/api_docs/cc/class/tensorflow/ops/edit-distance#classtensorflow_1_1ops_1_1_edit_distance).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------------|--------|\n| [normalize_](#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs_1a8e0d397f56f2b4ea61636081e9ac7480)` = true` | `bool` |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Normalize](#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs_1a9c625bffe6a1e0f589f77c5e643acfd1)`(bool x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.2/api_docs/cc/struct/tensorflow/ops/edit-distance/attrs#structtensorflow_1_1ops_1_1_edit_distance_1_1_attrs) boolean (if true, edit distances are normalized by length of truth). |\n\nPublic attributes\n-----------------\n\n### normalize_\n\n```scdoc\nbool tensorflow::ops::EditDistance::Attrs::normalize_ = true\n``` \n\nPublic functions\n----------------\n\n### Normalize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::EditDistance::Attrs::Normalize(\n bool x\n)\n``` \nboolean (if true, edit distances are normalized by length of truth).\n\nThe output is:\n\nDefaults to true"]]