This is an archive of the discontinued LLVM Phabricator instance.

[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
need of refactoring that is beyond the scope of this patch.

Diff Detail

Event Timeline

ftynse created this revision.Jan 4 2022, 9:02 AM
ftynse requested review of this revision.Jan 4 2022, 9:02 AM
stellaraccident accepted this revision.Jan 4 2022, 9:24 AM

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

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).

ftynse added a comment.Jan 4 2022, 9:28 AM

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).

I was surprised that the ops were still there.

ftynse updated this revision to Diff 397326.Jan 4 2022, 9:37 AM

More Bazel.