تدفق التوتر:: العمليات:: تنسيق السلسلة:: أترز
#include <string_ops.h>
محددات السمات الاختيارية لـ StringFormat .
ملخص
الصفات العامة | |
---|---|
placeholder_ = "%s" | StringPiece |
summarize_ = 3 | int64 |
template_ = "%s" | StringPiece |
الوظائف العامة | |
---|---|
Placeholder (StringPiece x) | TF_MUST_USE_RESULT Attrs سيتم إدراج سلسلة، عند كل عنصر نائب في القالب، ملخص موتر لاحق. |
Summarize (int64 x) | TF_MUST_USE_RESULT Attrs عند تنسيق ملخصات الموتر، قم بطباعة إدخالات التلخيص الأولى والأخيرة لكل بُعد موتر. |
Template (StringPiece x) | TF_MUST_USE_RESULT Attrs سلسلة، القالب الذي سيتم تنسيق ملخصات الموتر فيه. |
الصفات العامة
العنصر النائب_
StringPiece tensorflow::ops::StringFormat::Attrs::placeholder_ = "%s"
تلخيص_
int64 tensorflow::ops::StringFormat::Attrs::summarize_ = 3
نموذج_
StringPiece tensorflow::ops::StringFormat::Attrs::template_ = "%s"
الوظائف العامة
العنصر النائب
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Placeholder( StringPiece x )
سيتم إدراج سلسلة، عند كل عنصر نائب في القالب، ملخص موتر لاحق.
الإعدادات الافتراضية إلى "%s"
تلخيص
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Summarize( int64 x )
عند تنسيق ملخصات الموتر، قم بطباعة إدخالات التلخيص الأولى والأخيرة لكل بُعد موتر.
الافتراضي إلى 3
نموذج
TF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Template( StringPiece x )
سلسلة، القالب الذي سيتم تنسيق ملخصات الموتر فيه.
الإعدادات الافتراضية إلى "%s"
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::StringFormat::Attrs Struct Reference\n\ntensorflow::ops::StringFormat::Attrs\n====================================\n\n`#include \u003cstring_ops.h\u003e`\n\nOptional attribute setters for [StringFormat](/versions/r2.3/api_docs/cc/class/tensorflow/ops/string-format#classtensorflow_1_1ops_1_1_string_format).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------|---------------|\n| [placeholder_](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1ae154169fdc319721c6265fd1564fa6c5)` = \"%s\"` | `StringPiece` |\n| [summarize_](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a4ac645e6fc8777047aab38b524b9b1bf)` = 3` | `int64` |\n| [template_](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a49784b093dfa331fba507913ac889721)` = \"%s\"` | `StringPiece` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Placeholder](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a429fe5e592abbc155c1f6f5a7a8570ce)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs) A string, at each placeholder in the template a subsequent tensor summary will be inserted. |\n| [Summarize](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1aba0615598d71a58eb226fe2553559e94)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs) When formatting the tensor summaries print the first and last summarize entries of each tensor dimension. |\n| [Template](#structtensorflow_1_1ops_1_1_string_format_1_1_attrs_1a928ee0aff5ef8fa9e14e0410bf96afac)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/string-format/attrs#structtensorflow_1_1ops_1_1_string_format_1_1_attrs) A string, the template to format tensor summaries into. |\n\nPublic attributes\n-----------------\n\n### placeholder_\n\n```scdoc\nStringPiece tensorflow::ops::StringFormat::Attrs::placeholder_ = \"%s\"\n``` \n\n### summarize_\n\n```scdoc\nint64 tensorflow::ops::StringFormat::Attrs::summarize_ = 3\n``` \n\n### template_\n\n```scdoc\nStringPiece tensorflow::ops::StringFormat::Attrs::template_ = \"%s\"\n``` \n\nPublic functions\n----------------\n\n### Placeholder\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Placeholder(\n StringPiece x\n)\n``` \nA string, at each placeholder in the template a subsequent tensor summary will be inserted.\n\nDefaults to \"%s\" \n\n### Summarize\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Summarize(\n int64 x\n)\n``` \nWhen formatting the tensor summaries print the first and last summarize entries of each tensor dimension.\n\nDefaults to 3 \n\n### Template\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::StringFormat::Attrs::Template(\n StringPiece x\n)\n``` \nA string, the template to format tensor summaries into.\n\nDefaults to \"%s\""]]