tensorflow::ops::RestoreSlice
#include <io_ops.h>Khôi phục tensor từ các tệp điểm kiểm tra.
Bản tóm tắt
Chức năng này tương tự như Restore , ngoại trừ việc tensor được khôi phục chỉ có thể được liệt kê là lấp đầy một phần của tensor lớn hơn. shape_and_slice chỉ định hình dạng của tensor lớn hơn và phần mà tensor được khôi phục bao phủ.
Đầu vào shape_and_slice có cùng định dạng với các phần tử của đầu vào shapes_and_slices của toán tử SaveSlices .
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- file_pattern: Phải có một phần tử duy nhất. Đây là mẫu của các tệp mà từ đó chúng ta đọc tensor.
- tensor_name: Phải có một phần tử duy nhất. Tên của tensor cần được khôi phục.
- shape_and_slice: Scalar. Các thông số hình dạng và lát cắt cần sử dụng khi khôi phục tensor.
- dt: Loại tensor cần được khôi phục.
Các thuộc tính tùy chọn (xem Attrs ):
- preferred_shard: Chỉ số của tệp cần mở đầu tiên nếu có nhiều tệp khớp với
file_pattern. Xem tài liệu vềRestore.
Trả về:
-
Output: Tensor đã được khôi phục.
Hàm khởi tạo và hàm hủy | |
|---|---|
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt) | |
RestoreSlice (const :: tensorflow::Scope & scope, :: tensorflow::Input file_pattern, :: tensorflow::Input tensor_name, :: tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs) |
Thuộc tính công khai | |
|---|---|
operation | |
tensor | |
Chức năng công cộng | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Các hàm tĩnh công khai | |
|---|---|
PreferredShard (int64 x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::RestoreSlice::Attrs | Các thiết lập thuộc tính tùy chọn cho RestoreSlice . |
Thuộc tính công khai
hoạt động
Operation operation
tensor
::tensorflow::Output tensor
Chức năng công cộng
RestoreSlice
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt )
RestoreSlice
RestoreSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input shape_and_slice, DataType dt, const RestoreSlice::Attrs & attrs )
nút
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
PreferredShard
Attrs PreferredShard( int64 x )