컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
텐서플로우:: 작전:: 자리 표시자
#include <array_ops.h>
계산에 입력될 값에 대한 자리 표시자 작업입니다.
요약
주의: 이 작업을 실행하면 오류가 발생하여 실패합니다. 이는 항상 제공되는 값을 표현하고 런타임에 제공된 값을 확인할 수 있는 속성을 제공하기 위한 방법입니다.
인수:
- 범위: 범위 개체
- dtype: 텐서의 요소 유형입니다.
선택적 속성( Attrs
참조):
- 모양: (선택 사항) 텐서의 모양입니다. 모양의 차원이 0이면 모양이 제한되지 않습니다.
보고:
-
Output
: 피드 메커니즘을 사용하여 교체해야 하는 자리 표시자 텐서입니다.
공개 정적 함수 |
---|
Shape (PartialTensorShape x) | |
공개 속성
공공 기능
마디
::tensorflow::Node * node() const
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
모양
Attrs Shape(
PartialTensorShape x
)
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# tensorflow::ops::Placeholder Class Reference\n\ntensorflow::ops::Placeholder\n============================\n\n`#include \u003carray_ops.h\u003e`\n\nA placeholder op for a value that will be fed into the computation.\n\nSummary\n-------\n\nN.B. This operation will fail with an error if it is executed. It is intended as a way to represent a value that will always be fed, and to provide attrs that enable the fed value to be checked at runtime.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- dtype: The type of elements in the tensor.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs)):\n\n- shape: (Optional) The shape of the tensor. If the shape has 0 dimensions, the shape is unconstrained.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A placeholder tensor that must be replaced using the feed mechanism.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Placeholder](#classtensorflow_1_1ops_1_1_placeholder_1adb3e3d0b072d160a2df953b84093f55d)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, DataType dtype)` ||\n| [Placeholder](#classtensorflow_1_1ops_1_1_placeholder_1abb57d03cb93c356b129016dc3ff00e87)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, DataType dtype, const `[Placeholder::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_placeholder_1af4a6ff42f4dd94bf5dd37de61cea5ef0) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_placeholder_1a84e658dbf37cb549c1777496b6dbe5b7) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_placeholder_1a783185c82a138844a15cfc31b94d16ae)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_placeholder_1a698c9b9de24acafaccc356d925b22295)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_placeholder_1a22ddd47d22954ae354221696caf75d0b)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Shape](#classtensorflow_1_1ops_1_1_placeholder_1a7b0844809be785ca077012ead552c73d)`(PartialTensorShape x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/placeholder/attrs#structtensorflow_1_1ops_1_1_placeholder_1_1_attrs) |\n\n| ### Structs ||\n|------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Placeholder::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/placeholder/attrs) | Optional attribute setters for [Placeholder](/versions/r1.15/api_docs/cc/class/tensorflow/ops/placeholder#classtensorflow_1_1ops_1_1_placeholder). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### Placeholder\n\n```gdscript\n Placeholder(\n const ::tensorflow::Scope & scope,\n DataType dtype\n)\n``` \n\n### Placeholder\n\n```gdscript\n Placeholder(\n const ::tensorflow::Scope & scope,\n DataType dtype,\n const Placeholder::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Shape\n\n```text\nAttrs Shape(\n PartialTensorShape x\n)\n```"]]