Handbook
Glossary
flatten ( tensor -- tensor )
Tensors
ยป
Manipulating Tensors
Prev:
reshape ( tensor shape -- tensor )
Next:
t+ ( x y -- tensor )
Vocabulary
tensors
Inputs
tensor
a
tensor
Outputs
tensor
a
tensor
Word description
Reshapes
tensor
so that it is one-dimensional.
Definition
USING:
accessors
kernel
sequences
;
IN:
tensors
:
flatten
( tensor -- tensor )
dup
shape>>
product
{
}
1sequence
>>shape
;