dòng chảy :: hoạt động :: RestoreSlice
#include <io_ops.h>
Khôi phục một tensor từ các tệp điểm kiểm tra.
Tóm lược
Điều này giống như Restore
ngoại trừ tensor được phục hồi có thể được liệt kê là chỉ 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à lát cắt 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 op SaveSlices
.
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- file_pattern: Phải có một phần tử duy nhất. 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: Vô hướng. Các hình dạng và thông số kỹ thuật lát để sử dụng khi khôi phục một tensors.
- dt: Loại tenxơ được khôi phục.
Các thuộc tính tùy chọn (xem Phần Attrs
):
-
file_pattern
: Chỉ mục của tệp sẽ mở đầu tiên nếu nhiều tệp khớp vớifile_pattern
. Xem tài liệu vềRestore
.
Lợi nhuận:
-
Output
: Bộ căng được khôi phục.
Người xây dựng và Người phá 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 cộng | |
---|---|
operation | |
tensor |
Chức năng công cộng | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Các chức năng tĩnh công khai | |
---|---|
PreferredShard (int64 x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: RestoreSlice :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho RestoreSlice . |
Thuộc tính công cộng
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
toán tử :: tensorflow :: Đầu vào
operator::tensorflow::Input() const
toán tử :: tensorflow :: Đầu ra
operator::tensorflow::Output() const
Các chức năng tĩnh công khai
PreferredShard
Attrs PreferredShard( int64 x )