ExTorch.Utils.ListWrapper (extorch v0.2.0)

Copy Markdown

Struct used to represent a list with elements or lists of elements.

Summary

Types

t()

This struct wraps a list of elements or a list with lists of elements into a representation suitable to be converted into an ExTorch.Tensor

Types

t()

@type t() :: %ExTorch.Utils.ListWrapper{
  dtype: ExTorch.DType.base_type(),
  list: [number()] | [boolean()] | [ExTorch.Complex.t()],
  size: [integer()]
}

This struct wraps a list of elements or a list with lists of elements into a representation suitable to be converted into an ExTorch.Tensor