Skip to main content
Log in

Mojo struct

ListType

struct ListType

A type representing a flat list of tensor values.

This isn't an eager list type! It doesn't contain any data, but represents a runtime list that contains tensors.

Fields

  • eltype (TensorType): The tensor type of elements in the list.

Implemented traits

AnyType, CollectionElement, Copyable, Movable, UnknownDestructibility

Methods

__init__

__init__(out self, eltype: TensorType)

to_mlir

to_mlir(self, ctx: Context) -> Type

Converts to an _mlir.Type instance.

Args:

  • ctx (Context): The mlir.Context in which to create the type.

Returns:

An _mlir.Type in the specified Context.