Learn Before
Concept

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 00 (inclusive) and ending at nn (exclusive), with a default interval size of 11. This is a primary technique for programmatic iteration and indexing.

0

1

Updated 2026-05-01

Contributors are:

Who are from:

Tags

D2L

Dive into Deep Learning @ D2L