Attr¶
- class onnx_ir.Attr(name: str, type: AttributeType, value: Any, ref_attr_name: str | None = None, *, doc_string: str | None = None)¶
Base class for ONNX attributes or references.
- doc_string¶
- as_tensor() TensorProtocol [source]¶
Get the attribute value as a tensor.
- as_tensors() Sequence[TensorProtocol] [source]¶
Get the attribute value as a sequence of tensors.
- display(*, page: bool = False) None ¶
Pretty print the object.
- Parameters:
page – Whether to page the output.
- property type: AttributeType¶