>tensor ( seq -- tensor )
Tensors ยป Creating Tensors

Prev:tensor>array ( tensor: tensor -- seq: array )
Next:t{


Vocabulary
tensors

Inputs
seqa sequence


Outputs
tensora tensor


Word description
Turns a nested sequence seq into a tensor of the corresponding shape. Assumes a uniformly nested sequence.

Errors
Throws a non-uniform-seq-error if the given sequence have subsequences of varying lengths. Throws a lexer-error if the given sequence is not uniformly nested.

Definition