Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
tensoreflusso:: ops:: ImmutabileConst
#include <array_ops.h>
Restituisce il tensore immutabile dalla regione della memoria.
Riepilogo
L'attuale implementazione memorizza il tensore da un file.
Argomenti:
- scope: un oggetto Scope
- dtype: tipo del tensore restituito.
- forma: forma del tensore restituito.
- memory_region_name: nome della regione di memoria di sola lettura utilizzata dal tensore, vedere NewReadOnlyMemoryRegionFromFile in tensorflow::Env.
Resi:
Attributi pubblici
Funzioni pubbliche
ImmutabileConst
ImmutableConst(
const ::tensorflow::Scope & scope,
DataType dtype,
PartialTensorShape shape,
StringPiece memory_region_name
)
nodo
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operatore::tensorflow::Output
operator::tensorflow::Output() const
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::ImmutableConst Class Reference\n\ntensorflow::ops::ImmutableConst\n===============================\n\n`#include \u003carray_ops.h\u003e`\n\nReturns immutable tensor from memory region.\n\nSummary\n-------\n\nThe current implementation memmaps the tensor from a file.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- dtype: Type of the returned tensor.\n- shape: Shape of the returned tensor.\n- memory_region_name: Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The tensor tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ImmutableConst](#classtensorflow_1_1ops_1_1_immutable_const_1aab9e7185e34476fca15636e394313a6a)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_immutable_const_1af488862c99460624515d6f46da0c4225) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [tensor](#classtensorflow_1_1ops_1_1_immutable_const_1aa8c0d0ee596f1a68b05557139dd85951) | `::`[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_immutable_const_1af2b53b0f4adf62a117182f43d3270fd4)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_immutable_const_1a5329938c0ad6a99babe75af3d3623f47)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_immutable_const_1aa79e1c2dd15e9de061013311d314a20d)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### tensor\n\n```text\n::tensorflow::Output tensor\n``` \n\nPublic functions\n----------------\n\n### ImmutableConst\n\n```gdscript\n ImmutableConst(\n const ::tensorflow::Scope & scope,\n DataType dtype,\n PartialTensorShape shape,\n StringPiece memory_region_name\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```"]]