tensorflow:: אופס:: מציין מקום
#include <array_ops.h>
מציין מיקום עבור ערך שיוזן לחישוב.
תַקצִיר
הערה פעולה זו תיכשל עם שגיאה אם היא תבוצע. זה נועד כדרך לייצג ערך שתמיד יוזן, ולספק מאפיינים המאפשרים לבדוק את הערך המוזן בזמן ריצה.
טיעונים:
- scope: אובייקט Scope
- dtype: סוג האלמנטים בטנזור.
מאפיינים אופציונליים (ראה Attrs
):
- צורה: (אופציונלי) צורת הטנזור. אם לצורה יש 0 ממדים, הצורה אינה מוגבלת.
החזרות:
-
Output
: טנזור מציין מיקום שיש להחליף באמצעות מנגנון ההזנה.
בנאים והורסים | |
---|---|
Placeholder (const :: tensorflow::Scope & scope, DataType dtype) | |
Placeholder (const :: tensorflow::Scope & scope, DataType dtype, const Placeholder::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Shape (PartialTensorShape x) |
מבנים | |
---|---|
tensorflow:: ops:: Placeholder:: Attrs | מגדירי תכונות אופציונליים עבור מציין מיקום . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
מציין מקום
Placeholder( const ::tensorflow::Scope & scope, DataType dtype )
מציין מקום
Placeholder( const ::tensorflow::Scope & scope, DataType dtype, const Placeholder::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
צוּרָה
Attrs Shape( PartialTensorShape x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת 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```"]]