tf.io.parse_tensor
Преобразует сериализованный прото tensorflow.TensorProto в тензор.
tf.io.parse_tensor(
serialized, out_type, name=None
)
| Аргументы | |
|---|---|
serialized | A Tensor типа string. Скалярная строка, содержащая сериализованный прото TensorProto. |
out_type | A tf.DType. Тип сериализованного тензора. Указанный тип должен соответствовать типу сериализованного тензора, и не будет осуществляться неявное преобразование. |
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/io/parse_tensor