جریان تنسور:: عملیات:: ImmutableConst
#include <array_ops.h>
تانسور تغییرناپذیر را از ناحیه حافظه برمیگرداند.
خلاصه
پیاده سازی فعلی تانسور را از یک فایل ممپی می کند.
استدلال ها:
- scope: یک شی Scope
- dtype: نوع تانسور برگشتی.
- شکل: شکل تانسور برگشتی.
- memory_region_name: نام ناحیه حافظه فقط خواندنی که توسط تانسور استفاده میشود، به NewReadOnlyMemoryRegionFromFile در tensorflow::Env مراجعه کنید.
برمی گرداند:
-
Output
: تانسور تانسور.
سازندگان و ویرانگرها | |
---|---|
ImmutableConst (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name) |
صفات عمومی | |
---|---|
operation | |
tensor |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
صفات عمومی
عملیات
Operation operation
تانسور
::tensorflow::Output tensor
توابع عمومی
ImmutableConst
ImmutableConst( const ::tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],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```"]]