tf.TensorSpec

Describes a tf.Tensor.

Used in the notebooks

Used in the guide Used in the tutorials

Metadata for describing the tf.Tensor objects accepted or returned by some TensorFlow APIs.

shape Value convertible to tf.TensorShape. The shape of the tensor.
dtype Value convertible to tf.DType. The type of the tensor values.
name Optional name for the Tensor.