컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 변하기 쉬운:: 속성
#include <state_ops.h>
Variable 에 대한 선택적 속성 설정자입니다.
요약
공공 기능 |
---|
Container (StringPiece x) | 비어 있지 않은 경우 이 변수는 지정된 컨테이너에 배치됩니다. |
SharedName (StringPiece x) | 비어 있지 않은 경우 이 변수는 지정된 버킷에서 이 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
)
비어 있지 않은 경우 이 변수는 지정된 컨테이너에 배치됩니다.
그렇지 않으면 기본 컨테이너가 사용됩니다.
기본값은 ""입니다.
공유 이름
TF_MUST_USE_RESULT Attrs tensorflow::ops::Variable::Attrs::SharedName(
StringPiece x
)
비어 있지 않은 경우 이 변수는 지정된 버킷에서 이 shared_name으로 이름이 지정됩니다.
그렇지 않으면 노드 이름이 대신 사용됩니다.
기본값은 ""입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-28(UTC)
[null,null,["최종 업데이트: 2025-07-28(UTC)"],[],[],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 \"\""]]