tf.TensorShape

Represents the shape of a Tensor.

Used in the notebooks

Used in the guide Used in the tutorials

A TensorShape represents a possibly-partial shape specification for a Tensor. It may be one of the following:

  • Fully-known shape: has a known number of dimensions and a known size for each dimension. e.g. TensorShape([16, 256])
  • Partially-known shape: has a known number of dimensions, and an unknown size