You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was torchscript.compile, there is a argument backend_legal_ops which optionally stops torch-mlir from decomposing certain aten ops. But I couldn't find something similar when using fx.import_and_export. If there is someone please help how to do it.
The text was updated successfully, but these errors were encountered:
import_and_export has a decomposition_table argument. By default, it uses the table given by get_decomposition_table. You can try explicitly passing an empty list to disable all decompositions at this level.
(Other decompositions might still happen due to how dynamo is working internally).
I am trying to stop decomposition of operations like layer_norm or softmax. Even after passing the empty list, it decomposing. Although I found an alternate route to do that. like torch script, we can use backend_legal_ops argument before running the pass like this.
This seems like a useful feature, and since torch-mlir is migrating more towards dynamo, I believe dynamo export must also have this feature. I can send a PR for this
When I was
torchscript.compile
, there is a argumentbackend_legal_ops
which optionally stops torch-mlir from decomposing certain aten ops. But I couldn't find something similar when usingfx.import_and_export
. If there is someone please help how to do it.The text was updated successfully, but these errors were encountered: