tf.saved_model.build_tensor_info

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

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.

© 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/r1.15/api_docs/python/tf/saved_model/build_tensor_info