Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: NiezmiennaKonst
#include <array_ops.h>
Zwraca niezmienny tensor z obszaru pamięci.
Streszczenie
Bieżąca implementacja memmapuje tensor z pliku.
Argumenty:
- zakres: Obiekt Scope
- dtype: Typ zwróconego tensora.
- kształt: Kształt zwróconego tensora.
- memory_region_name: Nazwa obszaru pamięci tylko do odczytu używanego przez tensor, zobacz NewReadOnlyMemoryRegionFromFile w tensorflow::Env.
Zwroty:
Atrybuty publiczne
Funkcje publiczne
NiezmiennaKonst
ImmutableConst(
const ::tensorflow::Scope & scope,
DataType dtype,
PartialTensorShape shape,
StringPiece memory_region_name
)
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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```"]]