tf.raw_ops.DecodeRaw
Переинтерпретировать байты строки как вектор чисел.
tf.raw_ops.DecodeRaw(
bytes, out_type, little_endian=True, name=None
)
| Аргументы | |
|---|---|
bytes | A Tensor типа string. Все элементы должны иметь одинаковую длину. |
out_type | A tf.DType из: tf.half, tf.float32, tf.float64, tf.int32, tf.uint16, tf.uint8, tf.int16, tf.int8, tf.int64, tf.complex64, tf.complex128, tf.bool. |
little_endian | Необязательный bool. По умолчанию True. Указывает, находятся ли входные bytes в порядке little-endian. Игнорируется для out_type значений, хранящихся в одном байте, таких как uint8. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor типа out_type. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/raw_ops/DecodeRaw