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:: TensorArrayĐóng
#include <data_flow_ops.h>
Xóa TensorArray khỏi vùng chứa tài nguyên của nó.
Bản tóm tắt
Điều này cho phép người dùng đóng và giải phóng tài nguyên ở giữa một bước/chạy.
Lập luận:
Trả về:
Thuộc tính công khai
Chức năng công cộng
toán tử::tenorflow::Hoạt động
operator::tensorflow::Operation() 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::TensorArrayClose Class Reference\n\ntensorflow::ops::TensorArrayClose\n=================================\n\n`#include \u003cdata_flow_ops.h\u003e`\n\nDelete the [TensorArray](/versions/r2.2/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) from its resource container.\n\nSummary\n-------\n\nThis enables the user to close and release the resource in the middle of a step/run.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- handle: The handle to a [TensorArray](/versions/r2.2/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) (output of [TensorArray](/versions/r2.2/api_docs/cc/class/tensorflow/ops/tensor-array#classtensorflow_1_1ops_1_1_tensor_array) or [TensorArrayGrad](/versions/r2.2/api_docs/cc/class/tensorflow/ops/tensor-array-grad#classtensorflow_1_1ops_1_1_tensor_array_grad)).\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [TensorArrayClose](#classtensorflow_1_1ops_1_1_tensor_array_close_1ab5ed3b657f40eaa4996badf026bfd639)`(const ::`[tensorflow::Scope](/versions/r2.2/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.2/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` handle)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_tensor_array_close_1a6f7610da9f8ff494f5d7cf3c8056953e) | [Operation](/versions/r2.2/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_tensor_array_close_1a20f4809d157b1a557f5cd925131fedf2)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### TensorArrayClose\n\n```gdscript\n TensorArrayClose(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input handle\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]