>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.100 x86.64 (2240, heads/master-b90c89f82e, Sep 26 2023 19:59:25)