Tensor Element Summation
Often, it is necessary to calculate the total sum of a tensor's elements mathematically. For a vector of length , the sum of its elements is expressed as . To express sums over tensors of arbitrary shape, the summation simply extends over all of its axes. For example, the sum of all elements in an matrix is written using multiple summations as . Programmatically, summing all the elements within a tensor yields a new tensor containing only a single element.
0
1
Tags
D2L
Dive into Deep Learning @ D2L
Related
Augmented Matrix for a System of Equations
Determinant of a Square Matrix
Determinant of a Matrix
Example: Evaluating the Determinant of a Matrix
Practice: Evaluating the Determinant of a Matrix
Order of a Matrix
Tensor
k-th Order Tensor (Axes/Dimensions)
Typographical Conventions for Matrices
Programmatic Representation of Matrices
Dataset Representation using Matrices
Element of a Matrix
Matrix Representation via Row Vectors
Tensor Element Summation
Matrix Representation via Column Vectors
Matrix Decomposition
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