Creation Ops

Creation Ops#

arange

Returns contiguous values within the half-open interval [start, end).

cat

Concatenate the given blocks

full

Returns a tensor filled with the scalar value for the given shape and dtype.

zeros

Returns a tensor filled with the scalar value 0 for the given shape and dtype.

zeros_like

Returns a tensor of zeros with the same shape and type as a given tensor.

cast

Casts a tensor to the given dtype.