Handbook
Glossary
tensor>array ( tensor: tensor -- seq: array )
Tensors
ยป
Creating Tensors
Prev:
(tensor) ( shape -- tensor )
Next:
>tensor ( seq -- tensor )
Vocabulary
tensors
Inputs
tensor
a
tensor
Outputs
seq
an
array
Word description
Returns
tensor
as an n-dimensional array.
Definition
USING:
accessors
arrays
grouping
kernel
sequences
typed
;
IN:
tensors
TYPED:
tensor>array
( tensor: tensor -- seq: array )
[
vec>>
>array
]
[
shape>>
]
bi
[
rest-slice
reverse
[
group
]
each
]
unless-empty
;