-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[export][decomp] aten::einsum
decomposition is unavoidable
#115883
Comments
I'm marking this as high priority, from the far away lands of PTO, to discuss the right tags. Thank you! |
…skips using custom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…perator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…mposition skips using custom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…NNX][dynamo_export] Decomposition skips using custom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…ueError: vector reserve on "[ONNX][dynamo_export] Decomposition skips using custom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…on skips using custom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
…ustom operator" A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. [ghstack-poisoned]
) A context manager that disables the decomposition of certain ops during dynamo tracing. The approach is to temporarily hijack the operator callable with PT2 custom operator. The custom operator will not be decomposed and will show up as a single node to be exported to ONNX. For the time being the decomposition of these ops is otherwise unavoidable. #116684 #115883 This solution will no longer be required once the issue is resolved. Pull Request resolved: #117314 Approved by: https://github.com/justinchuby, https://github.com/malfet
@BowenBao Hi sorry for the late response as I'm cleaning up the issue queue... We'll soon migrate to a higher decomposition level (known as pre-dispatch), which might preseve aten::einsum in the graph, and this mode will become the default mode when we do a formal release, in our tentative plan. Currently we have a private flag to enable this mode which is hidden in torch.export._trace._export. If you want to try it out, feel free to go ahead. |
Is there a way to not decompose
aten::einsum
during export?cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @zou3519 @SherlockNoMad @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @aakhundov @kadeng @avikchaudhuri @gmagogsfm @zhxchen17 @tugsbayasgalan @angelayi @suo @ydwu4 @gchanan
The text was updated successfully, but these errors were encountered: