Handbook
Glossary
vstack ( seq -- tensor )
Tensors
ยป
Manipulating Tensors
Prev:
hstack ( seq -- tensor )
Next:
t-concat ( seq -- tensor )
Vocabulary
tensors
Inputs
seq
a
sequence
Outputs
tensor
a
tensor
Word description
Joins the sequences in
seq
row-wise.
Errors
Throws a
shape-mismatch-error
if the sequences in
seq
do not have the same shape along all but the first axis.
Definition
USING:
accessors
kernel
tensors.private
;
IN:
tensors
:
vstack
( seq -- tensor )
check-vstack-shape
[
final-vstack-shape
]
[
reshape-for-vstack
hstack-unsafe
]
bi
swap
>>shape
;