ExTorch.Utils.ListWrapper (extorch v0.1.0-pre0)

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

Link to this section 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

Link to this section Types

@type t() :: %ExTorch.Utils.ListWrapper{
  dtype: ExTorch.DType.base_type(),
  list: [number()] | [boolean()],
  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