Have a question? Connect with the community at the TensorFlow Forum Visit Forum


View source on GitHub

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

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.

A TensorInfo protocol buffer constructed based on the supplied argument.

RuntimeError If eager execution is enabled.