Handbook
Glossary
(tensor) ( shape -- tensor )
Tensors
ยป
Creating Tensors
Prev:
arange ( a b step -- tensor )
Next:
tensor>array ( tensor: tensor -- seq: array )
Vocabulary
tensors
Inputs
shape
a
sequence
Outputs
tensor
a
tensor
Word description
Creates a tensor with shape
shape
containing uninitialized values. Allows non-positive shapes.
Definition
USING:
kernel
sequences
specialized-arrays.instances.alien.c-types.float
tensors.private
;
IN:
tensors
:
(tensor)
( shape -- tensor )
dup
product
(float-array)
<tensor>
;