tf.io.parse_tensor
Преобразует сериализованный прото tensorflow.TensorProto в тензор.
tf.io.parse_tensor(
serialized: Annotated[Any, _atypes.String],
out_type: TV_ParseTensor_out_type,
name=None
) -> Annotated[Any, TV_ParseTensor_out_type]
| Аргументы | |
|---|---|
serialized | Tensor типа string. Скалярная строка, содержащая сериализованный прото 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/io/parse_tensor