Learn Before
Elementwise Tensor Operation
An elementwise tensor operation applies a standard scalar function to the individual elements of a tensor. For a unary scalar operator, denoted mathematically as , the function maps each real number in the tensor to another real number independently. For a binary scalar operator, denoted as , the operation maps pairs of real numbers to a single real number. When a binary operator is applied to two tensors of identical shape—whether they are vectors, matrices, or higher-order tensors—the function evaluates each pair of corresponding elements to produce a new tensor that has the exact same shape as its operands.
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