We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bffa11b commit 51d9f31Copy full SHA for 51d9f31
mlir/lib/Bindings/Python/DialectGPU.cpp
@@ -34,7 +34,7 @@ NB_MODULE(_mlirDialectsGPU, m) {
34
35
mlirGPUAsyncTokenType.def_classmethod(
36
"get",
37
- [](nb::object cls, MlirContext ctx) {
+ [](const nb::object &cls, MlirContext ctx) {
38
return cls(mlirGPUAsyncTokenTypeGet(ctx));
39
},
40
"Gets an instance of AsyncTokenType in the same context", nb::arg("cls"),
@@ -47,8 +47,9 @@ NB_MODULE(_mlirDialectsGPU, m) {
47
mlir_attribute_subclass(m, "ObjectAttr", mlirAttributeIsAGPUObjectAttr)
48
.def_classmethod(
49
50
- [](nb::object cls, MlirAttribute target, uint32_t format,
51
- nb::bytes object, std::optional<MlirAttribute> mlirObjectProps,
+ [](const nb::object &cls, MlirAttribute target, uint32_t format,
+ const nb::bytes &object,
52
+ std::optional<MlirAttribute> mlirObjectProps,
53
std::optional<MlirAttribute> mlirKernelsAttr) {
54
MlirStringRef objectStrRef = mlirStringRefCreate(
55
static_cast<char *>(const_cast<void *>(object.data())),
0 commit comments