tensorflow::ops::DecodePaddedRaw
#include <parsing_ops.h>Diễn giải lại các byte của một chuỗi ký tự thành một vectơ các số.
Bản tóm tắt
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
- input_bytes: Tensor chứa chuỗi ký tự cần 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 kiểu dữ liệu đầu ra.
Các thuộc tính tùy chọn (xem Attrs ):
- little_endian: Cho biết dữ liệu đầu vào
input_bytescó theo thứ tự little-endian hay không. Tham số này bị bỏ qua đối với các giá trịout_typeđược lưu trữ trong một byte duy nhất, ví dụ nhưuint8
Trả về:
-
Output: Một Tensor có số chiều nhiều hơn sốbytesđầu vào một chiều. Chiều được thêm vào sẽ có kích thước bằng độ dài của các phần tửbyteschia cho số byte để biểu diễnout_type.
Hàm khởi tạo và hàm 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 khai | |
|---|---|
operation | |
output | |
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 | |
|---|---|
LittleEndian (bool x) | |
Cấu trúc | |
|---|---|
| tensorflow::ops::DecodePaddedRaw::Attrs | Các thiết lập thuộc tính tùy chọn cho DecodePaddedRaw . |
Thuộc tính công khai
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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
LittleEndian
Attrs LittleEndian( bool x )