Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
dòng chảy căng:: ôi:: IsVariableĐược khởi tạo
#include <state_ops.h>
Kiểm tra xem tensor đã được khởi tạo chưa.
Bản tóm tắt
Xuất ra giá trị vô hướng boolean cho biết tensor đã được khởi tạo hay chưa.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- ref: Phải từ nút
Variable
. Có thể chưa được khởi tạo.
Trả về:
-
Output
: Tenxơ is_initialized.
Thuộc tính công khai
Chức năng công cộng
nút
::tensorflow::Node * node() const
operator::tensorflow::Input() const
toán tử::tenorflow::Đầu ra
operator::tensorflow::Output() const
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::IsVariableInitialized Class Reference\n\ntensorflow::ops::IsVariableInitialized\n======================================\n\n`#include \u003cstate_ops.h\u003e`\n\nChecks whether a tensor has been initialized.\n\nSummary\n-------\n\nOutputs boolean scalar indicating whether the tensor has been initialized.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- ref: Should be from a [Variable](/versions/r2.3/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable) node. May be uninitialized.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The is_initialized tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [IsVariableInitialized](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a87a43164f781b7de92ab0823d3690a01)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` ref)` ||\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [is_initialized](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a6b04d210b7237b4aaee54a3c45c99c41) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n| [operation](#classtensorflow_1_1ops_1_1_is_variable_initialized_1ad7451f953a585b9bf007335930c6f930) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_is_variable_initialized_1ac5fbba3a4bc5e833b32bb936e0b683e2)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_is_variable_initialized_1a29ebeb12023c9b9cde27be7762678de3)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_is_variable_initialized_1afb0da459bb73412eaf8a43a4502ba69e)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### is_initialized\n\n```scdoc\n::tensorflow::Output is_initialized\n``` \n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### IsVariableInitialized\n\n```gdscript\n IsVariableInitialized(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input ref\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```"]]