MLIR 23.0.0git
mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::sparse_tensor::EncodingAttr Struct Reference
Inheritance diagram for mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::sparse_tensor::EncodingAttr:

Static Public Member Functions

static void bindDerived (ClassTy &c)
Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< EncodingAttr >
static MlirAttribute castFrom (PyAttribute &orig)
static void bind (nanobind::module_ &m, PyType_Slot *slots=nullptr)
static void bindDerived (ClassTy &m)
 Implemented by derived classes to add methods to the Python subclass.
Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAttribute
static PyAttribute createFromCapsule (const nanobind::object &capsule)
 Creates a PyAttribute from the MlirAttribute wrapped by a capsule.

Static Public Attributes

static constexpr IsAFunctionTy isaFunction
static constexpr const char * pyClassName = "EncodingAttr"
static const MlirStringRef name
Static Public Attributes inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< EncodingAttr >
static constexpr GetTypeIDFunctionTy getTypeIdFunction
static const MlirStringRef name

Additional Inherited Members

Public Types inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< EncodingAttr >
using ClassTy
using IsAFunctionTy
using GetTypeIDFunctionTy
using Base
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteAttribute< EncodingAttr >
 PyConcreteAttribute ()=default
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyAttribute
 PyAttribute (PyMlirContextRef contextRef, MlirAttribute attr)
bool operator== (const PyAttribute &other) const
 operator MlirAttribute () const
MlirAttribute get () const
nanobind::object getCapsule ()
 Gets a capsule wrapping the void* within the MlirAttribute.
nanobind::typed< nanobind::object, PyAttributemaybeDownCast ()
Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::BaseContextObject
 BaseContextObject (PyMlirContextRef ref)
PyMlirContextRefgetContext ()
 Accesses the context reference.

Detailed Description

Definition at line 43 of file DialectSparseTensor.cpp.

Member Function Documentation

◆ bindDerived()

Member Data Documentation

◆ isaFunction

IsAFunctionTy mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::sparse_tensor::EncodingAttr::isaFunction
staticconstexpr
Initial value:
=
MLIR_CAPI_EXPORTED bool mlirAttributeIsASparseTensorEncodingAttr(MlirAttribute attr)
Checks whether the given attribute is a sparse_tensor.encoding attribute.

Definition at line 44 of file DialectSparseTensor.cpp.

◆ name

const MlirStringRef mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::sparse_tensor::EncodingAttr::name
inlinestatic
Initial value:
=
MLIR_CAPI_EXPORTED MlirStringRef mlirSparseTensorEncodingAttrGetName(void)

Definition at line 47 of file DialectSparseTensor.cpp.

◆ pyClassName

const char* mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::sparse_tensor::EncodingAttr::pyClassName = "EncodingAttr"
staticconstexpr

Definition at line 46 of file DialectSparseTensor.cpp.


The documentation for this struct was generated from the following file: