TensorFlow 2.0 Beta is available Learn more

tf.saved_model.build_tensor_info

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

Aliases:

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

Defined in python/saved_model/utils_impl.py.

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.