>tensor ( seq -- tensor )

Tensors ยป Creating Tensors

Tensors ยป Creating Tensors

Prev: | tensor>array ( tensor: tensor -- seq: array ) |

Next: | t{ |

Vocabulary

tensors

Inputs

Outputs

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

tensors

Inputs

seq | a sequence |

Outputs

tensor | a 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

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)