컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 우선순위큐:: 속성
#include <data_flow_ops.h>
PriorityQueue 에 대한 선택적 속성 설정자입니다.
요약
공공 기능 |
---|
Capacity (int64 x) | 이 큐에 있는 요소 수의 상한입니다. |
ComponentTypes (const DataTypeSlice & x) | 값의 각 구성 요소 유형입니다. |
Container (StringPiece x) | 비어 있지 않은 경우 이 큐는 지정된 컨테이너에 배치됩니다. |
SharedName (StringPiece x) | 비어 있지 않은 경우 이 대기열은 여러 세션에서 지정된 이름으로 공유됩니다. |
공개 속성
용량_
int64 tensorflow::ops::PriorityQueue::Attrs::capacity_ = -1
구성요소_유형_
DataTypeSlice tensorflow::ops::PriorityQueue::Attrs::component_types_ = {}
컨테이너_
StringPiece tensorflow::ops::PriorityQueue::Attrs::container_ = ""
공유_이름_
StringPiece tensorflow::ops::PriorityQueue::Attrs::shared_name_ = ""
공공 기능
용량
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Capacity(
int64 x
)
이 큐에 있는 요소 수의 상한입니다.
음수는 제한이 없음을 의미합니다.
기본값은 -1입니다.
구성 요소 유형
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::ComponentTypes(
const DataTypeSlice & x
)
값의 각 구성 요소 유형입니다.
기본값은 []
컨테이너
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Container(
StringPiece x
)
비어 있지 않은 경우 이 큐는 지정된 컨테이너에 배치됩니다.
그렇지 않으면 기본 컨테이너가 사용됩니다.
기본값은 ""입니다.
공유 이름
TF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::SharedName(
StringPiece x
)
비어 있지 않은 경우 이 대기열은 여러 세션에서 지정된 이름으로 공유됩니다.
기본값은 ""입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# tensorflow::ops::PriorityQueue::Attrs Struct Reference\n\ntensorflow::ops::PriorityQueue::Attrs\n=====================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nOptional attribute setters for [PriorityQueue](/versions/r1.15/api_docs/cc/class/tensorflow/ops/priority-queue#classtensorflow_1_1ops_1_1_priority_queue).\n\nSummary\n-------\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------------------------------|-----------------|\n| [capacity_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aa65ffe44dc2714109f19e52992569fec)` = -1` | `int64` |\n| [component_types_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aa839a218bb8127538e1149e179d2acd4)` = {}` | `DataTypeSlice` |\n| [container_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a963c0211187034f0a378b5156205d87d)` = \"\"` | `StringPiece` |\n| [shared_name_](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a5499e28c72d1d604fabb04d1d18d45d5)` = \"\"` | `StringPiece` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Capacity](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aae9a59255a2ba82121cf2ac12fb3be6b)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) The upper bound on the number of elements in this queue. |\n| [ComponentTypes](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1aeecbf3906b679e8d2947a6da73dcbebe)`(const DataTypeSlice & x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) The type of each component in a value. |\n| [Container](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1ab62e40df0008369c3717067be30e9f80)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) If non-empty, this queue is placed in the given container. |\n| [SharedName](#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs_1a0c6e77bf1243bca2aad8a9b695ed47cb)`(StringPiece x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/priority-queue/attrs#structtensorflow_1_1ops_1_1_priority_queue_1_1_attrs) If non-empty, this queue will be shared under the given name across multiple sessions. |\n\nPublic attributes\n-----------------\n\n### capacity_\n\n```scdoc\nint64 tensorflow::ops::PriorityQueue::Attrs::capacity_ = -1\n``` \n\n### component_types_\n\n```carbon\nDataTypeSlice tensorflow::ops::PriorityQueue::Attrs::component_types_ = {}\n``` \n\n### container_\n\n```scdoc\nStringPiece tensorflow::ops::PriorityQueue::Attrs::container_ = \"\"\n``` \n\n### shared_name_\n\n```scdoc\nStringPiece tensorflow::ops::PriorityQueue::Attrs::shared_name_ = \"\"\n``` \n\nPublic functions\n----------------\n\n### Capacity\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Capacity(\n int64 x\n)\n``` \nThe upper bound on the number of elements in this queue.\n\nNegative numbers mean no limit.\n\nDefaults to -1 \n\n### ComponentTypes\n\n```gdscript\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::ComponentTypes(\n const DataTypeSlice & x\n)\n``` \nThe type of each component in a value.\n\nDefaults to \\[\\] \n\n### Container\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::PriorityQueue::Attrs::Container(\n StringPiece x\n)\n``` \nIf non-empty, this queue 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::PriorityQueue::Attrs::SharedName(\n StringPiece x\n)\n``` \nIf non-empty, this queue will be shared under the given name across multiple sessions.\n\nDefaults to \"\""]]