Also known as: Shape (Tensor) · Shape Tensor
Shape of a tensor описывает количество elements along each dimension. Обычно она представляется как list или tuple of integers и может быть known statically at compile time или dynamically at runtime.
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 .