جریان تنسور:: عملیات:: متغیر:: Attrs
#include <state_ops.h>
تنظیم کننده های ویژگی اختیاری برای متغیر .
خلاصه
صفات عمومی | |
---|---|
container_ = "" | StringPiece |
shared_name_ = "" | StringPiece |
توابع عمومی | |
---|---|
Container (StringPiece x) | TF_MUST_USE_RESULT Attrs اگر خالی نباشد، این متغیر در ظرف داده شده قرار می گیرد. |
SharedName (StringPiece x) | TF_MUST_USE_RESULT Attrs اگر خالی نباشد، این متغیر در سطل داده شده با این shared_name نامگذاری می شود. |
صفات عمومی
ظرف_
StringPiece tensorflow::ops::Variable::Attrs::container_ = ""
اشتراک_نام_
StringPiece tensorflow::ops::Variable::Attrs::shared_name_ = ""
توابع عمومی
ظرف
TF_MUST_USE_RESULT Attrs tensorflow::ops::Variable::Attrs::Container( StringPiece x )
اگر خالی نباشد، این متغیر در ظرف داده شده قرار می گیرد.
در غیر این صورت از یک کانتینر پیش فرض استفاده می شود.
پیشفرض به ""
SharedName
TF_MUST_USE_RESULT Attrs tensorflow::ops::Variable::Attrs::SharedName( StringPiece x )
اگر خالی نباشد، این متغیر در سطل داده شده با این shared_name نامگذاری می شود.
در غیر این صورت، به جای آن از نام گره استفاده می شود.
پیشفرض به ""
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-28 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-28 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::Variable::Attrs Struct Reference\n\ntensorflow::ops::Variable::Attrs\n================================\n\n`#include \u003cstate_ops.h\u003e`\n\nOptional attribute setters for [Variable](/versions/r1.15/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable).\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------|---------------|\n| [container_](#structtensorflow_1_1ops_1_1_variable_1_1_attrs_1a6e4b22d4fd5ffc4577ae074f5e8326fd)` = \"\"` | `StringPiece` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_variable_1_1_attrs_1ad319f0780ed16ffc06c0b37dde1d48c9)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Container](#structtensorflow_1_1ops_1_1_variable_1_1_attrs_1a03383bc7015aaa7a15753a1efd13f261)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/variable/attrs#structtensorflow_1_1ops_1_1_variable_1_1_attrs) If non-empty, this variable is placed in the given container. |\n| [SharedName](#structtensorflow_1_1ops_1_1_variable_1_1_attrs_1aa39e5eb0fe345d5dbf228ead0475f83b)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/variable/attrs#structtensorflow_1_1ops_1_1_variable_1_1_attrs) If non-empty, this variable is named in the given bucket with this shared_name. |\n\nPublic attributes\n-----------------\n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::Variable::Attrs::container_ = \"\"\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::Variable::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Variable::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this variable is placed in the given container.\n\nOtherwise, a default container is used.\n\nDefaults to \"\" \n\n### SharedName\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::Variable::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this variable is named in the given bucket with this shared_name.\n\nOtherwise, the node name is used instead.\n\nDefaults to \"\""]]