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:: ReaderKhôi phụcTrạng thái
#include <io_ops.h>
Khôi phục đầu đọc về trạng thái đã lưu trước đó.
Bản tóm tắt
Không phải tất cả Reader đều hỗ trợ khôi phục nên điều này có thể gây ra lỗi Chưa thực hiện.
Lập luận:
- phạm vi: Một đối tượng Phạm vi
- reader_handle: Xử lý cho Reader.
- trạng thái: Kết quả của ReaderSerializeState của Reader có loại reader_handle phù hợp.
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::ReaderRestoreState Class Reference\n\ntensorflow::ops::ReaderRestoreState\n===================================\n\n`#include \u003cio_ops.h\u003e`\n\n[Restore](/versions/r1.15/api_docs/cc/class/tensorflow/ops/restore#classtensorflow_1_1ops_1_1_restore) a reader to a previously saved state.\n\nSummary\n-------\n\nNot all Readers support being restored, so this can produce an Unimplemented error.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- reader_handle: Handle to a Reader.\n- state: Result of a [ReaderSerializeState](/versions/r1.15/api_docs/cc/class/tensorflow/ops/reader-serialize-state#classtensorflow_1_1ops_1_1_reader_serialize_state) of a Reader with type matching reader_handle.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ReaderRestoreState](#classtensorflow_1_1ops_1_1_reader_restore_state_1a89d3806e028e0917362aa36fd51ce849)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` reader_handle, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` state)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_reader_restore_state_1a03de5f453506a3a89e1318a3def9a647) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_reader_restore_state_1a169bff5be553fea3119e14d118cd9475)`() const ` | ` ` ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### ReaderRestoreState\n\n```gdscript\n ReaderRestoreState(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input reader_handle,\n ::tensorflow::Input state\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n```"]]