>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.101 x86.64 (2282, heads/master-8ccbe0b4ca, Sep 17 2024 12:10:25)