Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
tensoreflusso:: ops:: Segnaposto
#include <array_ops.h>
Un'operazione segnaposto per un valore che verrà inserito nel calcolo.
Riepilogo
NB Questa operazione fallirà con errore se eseguita. È inteso come un modo per rappresentare un valore che verrà sempre inserito e per fornire attributi che consentano di controllare il valore inserito in fase di esecuzione.
Argomenti:
- scope: un oggetto Scope
- dtype: il tipo di elementi nel tensore.
Attributi facoltativi (vedi Attrs
):
- forma: (facoltativo) la forma del tensore. Se la forma ha 0 dimensioni, la forma non è vincolata.
Resi:
-
Output
: un tensore segnaposto che deve essere sostituito utilizzando il meccanismo di alimentazione.
Funzioni pubbliche statiche |
---|
Shape (PartialTensorShape x) | |
Attributi pubblici
Funzioni pubbliche
nodo
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
Funzioni pubbliche statiche
Forma
Attrs Shape(
PartialTensorShape x
)
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 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```"]]