tf.raw_ops.ParseTensor
Преобразует сериализованный proto tensorflow.TensorProto в тензор.
tf.raw_ops.ParseTensor(
serialized, out_type, name=None
)
| Аргументы | |
|---|---|
serialized | Tensor типа string. Скалярная строка, содержащая сериализованный proto TensorProto. |
out_type | tf.DType. Тип сериализованного тензора. Указанный тип должен соответствовать типу сериализованного тензора; неявное преобразование выполняться не будет. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
Tensor типа out_type. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/raw_ops/ParseTensor