>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 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)