Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::ImmutableConst
#include <array_ops.h>
Returns immutable tensor from memory region.
Summary
The current implementation memmaps the tensor from a file.
Args:
- scope: A Scope object
- dtype: Type of the returned tensor.
- shape: Shape of the returned tensor.
- memory_region_name: Name of readonly memory region used by the tensor, see NewReadOnlyMemoryRegionFromFile in tensorflow::Env.
Returns:
Public attributes
Public functions
ImmutableConst
ImmutableConst(
const ::tensorflow::Scope & scope,
DataType dtype,
PartialTensorShape shape,
StringPiece memory_region_name
)
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 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\nArgs:\n\n- scope: A [Scope](/versions/r2.14/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/r2.14/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/r2.14/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/r2.14/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [tensor](#classtensorflow_1_1ops_1_1_immutable_const_1aa8c0d0ee596f1a68b05557139dd85951) | `::`[tensorflow::Output](/versions/r2.14/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```"]]