ExTorch.Utils.ListWrapper
(extorch v0.4.0)
Copy Markdown
Struct used to represent a list with elements or lists of elements.
Summary
Types
@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