dòng chảy :: ops :: DecodePaddedRaw
#include <parsing_ops.h>
Diễn giải lại các byte của một chuỗi dưới dạng một vectơ số.
Tóm lược
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- input_bytes: tensor của chuỗi để được giải mã.
- fixed_length: Độ dài tính bằng byte cho mỗi phần tử của đầu ra được giải mã. Phải là bội số của kích thước của loại đầu ra.
Các thuộc tính tùy chọn (xem Phần Attrs
):
- little_endian: Liệu
input_bytes
đầu vào có theo thứ tự nhỏ-endian hay không.out_type
bỏ qua đối với các giá trịout_type
được lưu trữ trong một byte đơn, nhưuint8
Lợi nhuận:
-
Output
: Một Tensor có nhiều thứ nguyên hơnbytes
đầu vào. Kích thước được thêm vào sẽ có kích thước bằng chiều dài của các phần tửbytes
chia cho số byte để biểu thịout_type
.
Người xây dựng và Người phá hủy | |
---|---|
DecodePaddedRaw (const :: tensorflow::Scope & scope, :: tensorflow::Input input_bytes, :: tensorflow::Input fixed_length, DataType out_type) | |
DecodePaddedRaw (const :: tensorflow::Scope & scope, :: tensorflow::Input input_bytes, :: tensorflow::Input fixed_length, DataType out_type, const DecodePaddedRaw::Attrs & attrs) |
Thuộc tính công cộng | |
---|---|
operation | |
output |
Chức năng công cộng | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Chức năng tĩnh công khai | |
---|---|
LittleEndian (bool x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: DecodePaddedRaw :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho DecodePaddedRaw . |
Thuộc tính công cộng
hoạt động
Operation operation
đầu ra
::tensorflow::Output output
Chức năng công cộng
DecodePaddedRaw
DecodePaddedRaw( const ::tensorflow::Scope & scope, ::tensorflow::Input input_bytes, ::tensorflow::Input fixed_length, DataType out_type )
DecodePaddedRaw
DecodePaddedRaw( const ::tensorflow::Scope & scope, ::tensorflow::Input input_bytes, ::tensorflow::Input fixed_length, DataType out_type, const DecodePaddedRaw::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
Chức năng tĩnh công khai
LittleEndian
Attrs LittleEndian( bool x )