Learn Before
Programmatic Construction of Higher-Order Tensors
In deep learning frameworks, higher-order tensors (those with an order greater than two) are constructed programmatically by expanding the number of components specified in their shape tuple. Similar to the creation of matrices, a generic sequential array of elements can be rearranged into a multidimensional structure by passing the desired axis lengths to a function like reshape, such as .reshape(2, 3, 4) for a -order tensor.
0
1
Tags
D2L
Dive into Deep Learning @ D2L
Related
Vector (1D Tensor)
Tensor Indexing
Tensor to NumPy Array Conversion
Size-1 Tensor to Python Scalar Conversion
jax.numpy.array()
Typographical Conventions for General Tensors
Single Image Representation as a 3rd-Order Tensor
Programmatic Construction of Higher-Order Tensors
Tensor-Scalar Arithmetic
Tensor Concatenation
Elementwise Tensor Operation
Tensor Element Summation
Tensor Class Interface Summary
Vector
Tensor Initialization with Zeros
Tensor Initialization with Ones
Evenly Spaced Tensor Initialization
Random Tensor Initialization
Programmatic Construction of Tensors from Nested Lists
Tensor as a Software Object
Tensor Decomposition
Programmatic Construction of Higher-Order Tensors