Aliases:
tf.decode_raw
tf.io.decode_raw
tf.io.decode_raw(
bytes,
out_type,
little_endian=True,
name=None
)
Defined in generated file: tensorflow/python/ops/gen_parsing_ops.py
.
Reinterpret the bytes of a string as a vector of numbers.
Args:
bytes
: ATensor
of typestring
. All the elements must have the same length.out_type
: Atf.DType
from:tf.half, tf.float32, tf.float64, tf.int32, tf.uint16, tf.uint8, tf.int16, tf.int8, tf.int64
.little_endian
: An optionalbool
. Defaults toTrue
. Whether the inputbytes
are in little-endian order. Ignored forout_type
values that are stored in a single byte likeuint8
.name
: A name for the operation (optional).
Returns:
A Tensor
of type out_type
.