Handbook
Glossary
zeros ( shape -- tensor )
Tensors
ยป
Creating Tensors
Next:
ones ( shape -- tensor )
Vocabulary
tensors
Inputs
shape
a
sequence
Outputs
tensor
a
tensor
Word description
Initializes a tensor with shape
shape
containing all 0s.
Errors
Throws a
non-positive-shape-error
if the given shape has zero or negative values.
Definition
USING:
tensors.private
;
IN:
tensors
:
zeros
( shape -- tensor )
0
repetition
;