TensorType¶

class onnx_ir.TensorType(dtype: DataType, *, denotation: str | None = None)¶

A type that represents a tensor.

denotation: str | None¶
display(*, page: bool = False) None¶

Pretty print the object.

Parameters:

page – Whether to page the output.

property dtype: DataType¶
property elem_type: DataType¶

Return the element type of the tensor type.