Learn Before
Evenly Spaced Tensor Initialization
A standard method for generating a prepopulated one-dimensional tensor (a vector) is to create a sequence of evenly spaced values. By invoking a function such as arange(n), the framework constructs a vector starting at (inclusive) and ending at (exclusive), with a default interval size of . This is a primary technique for programmatic iteration and indexing.
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