Caesar AI Atlas

Shape

Also known as: Shape (Tensor) Β· Shape Tensor

Caesar AI Atlas Definition

The shape of a tensor describes the number of elements along each dimension. It is commonly represented as a list or tuple of integers and may be known statically at compile time or dynamically at runtime.

Other Definitions

Shape [Tensor] Source

The number of elements in each dimension of a tensor. The shape is represented as a list of integers. For example, the following two-dimensional tensor has a shape of \\[3,4\\]: TensorFlow uses row-major (C-style) format to represent the order of dimensions, which is why the shape in TensorFlow is rather than . In other words, in a two-dimensional TensorFlow Tensor, the shape is number of rows , number of columns . A static shape is a tensor shape that is known at compile time. A dynamic shape is unknown at compile time and is therefore dependent on runtime data. This tensor might be represented with a placeholder dimension in TensorFlow, as in .

Related Terms