tf.saved_model.utils.build_tensor_info(tensor)

tf.saved_model.utils.build_tensor_info(tensor)

Utility function to build TensorInfo proto.

Args:

  • tensor: Tensor whose name, dtype and shape are used to build the TensorInfo.

Returns:

A TensorInfo protocol buffer constructed based on the supplied argument.

Defined in tensorflow/python/saved_model/utils_impl.py.