chainerx.arange¶
-
chainerx.
arange
([start=0, ]stop, [step=1, ]dtype=None, device=None)¶ Returns an array with evenly spaced values within a given interval.
Values are generated within the half-open interval [
start
,stop
). The first three arguments are mapped like therange
built-in function, i.e.start
andstep
are optional.- Parameters
start – Start of the interval.
stop – End of the interval.
step – Step width between each pair of consecutive values.
dtype – Data type specifier. It is inferred from other arguments by default.
device (Device) – Device on which the array is allocated. If omitted, the default device is chosen.
- Returns
The 1-D array of range values.
- Return type
See also