Spec-Zone.ru › TensorFlow

tf.compat.v1.saved_model.build_tensor_info

Utility function to build TensorInfo proto from a Tensor. (deprecated)

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.saved_model.utils.build_tensor_info

tf.compat.v1.saved_model.build_tensor_info(
    tensor
)

Migrate to TF2

Caution: This API was designed for TensorFlow v1. Continue reading for details on how to migrate from this API to a native TensorFlow v2 equivalent. See the TensorFlow v1 to TensorFlow v2 migration guide for instructions on how to migrate the rest of your code.

This API is not compatible with eager execution as tensor needs to be a graph tensor, and there is no replacement for it in TensorFlow 2.x. To start writing programs using TensorFlow 2.x, please refer to the Effective TensorFlow 2 guide.

Description

Deprecated: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: This API was designed for TensorFlow v1. See https://www.tensorflow.org/guide/migrate for instructions on how to migrate your code to TensorFlow v2.
Args
tensor Tensor or SparseTensor whose name, dtype and shape are used to build the TensorInfo. For SparseTensors, the names of the three constituent Tensors are used.
Returns
A TensorInfo protocol buffer constructed based on the supplied argument.
Raises
RuntimeError If eager execution is enabled.

© 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/compat/v1/saved_model/build_tensor_info

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API