Skip to main content

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

Methods

to_mlir

to_mlir(self: 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.