So far, only the custom dialect types are exposed.
The build and packaging is same as for Linalg and SparseTensor, and in
need of refactoring that is beyond the scope of this patch.
Paths
| Differential D116605
[mlir] Introduce Python bindings for the quantization dialect ClosedPublic Authored by ftynse on Jan 4 2022, 9:02 AM.
Details Summary So far, only the custom dialect types are exposed. The build and packaging is same as for Linalg and SparseTensor, and in
Diff Detail
Event TimelineComment Actions I wish I could uninvent those types, but they've been stable for a long time, and there are repeated requests to have access to them - so no objection to this API surface increase. This revision is now accepted and ready to land.Jan 4 2022, 9:24 AM Comment Actions I believe the plan is record is to remove the ops from this dialect, so just exposing types here is preferred (as you have it). Comment Actions
I was surprised that the ops were still there. ftynse added a parent revision: D116546: [mlir] Introduce C API for the Quantization dialect types.Jan 4 2022, 9:42 AM ftynse added a child revision: D116662: [mlir] Split out Python bindings for dialects into separate libs.Jan 5 2022, 7:14 AM Closed by commit rG66d4090d9b15: [mlir] Introduce Python bindings for the quantization dialect (authored by ftynse). · Explain WhyJan 5 2022, 7:26 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 397326 mlir/include/mlir/Bindings/Python/PybindAdaptors.h
mlir/lib/Bindings/Python/DialectQuant.cpp
mlir/lib/Bindings/Python/Dialects.h
mlir/lib/Bindings/Python/MainModule.cpp
mlir/python/CMakeLists.txt
mlir/python/mlir/_mlir_libs/_mlir/dialects/quant.pyi
mlir/python/mlir/dialects/quant.py
mlir/test/python/dialects/quant.py
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
|