-
Notifications
You must be signed in to change notification settings - Fork 64
ATen ops list #258
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
Comments
Some of the ops above are not a part of the ops_db in torch (which is a requirement for aten support). |
I think a hand constructed test in onnxscript (OpInfo style if doable - you can simply create an OpInfo and append it to the list, normal function calls otherwise) will do. A PR to PyTorch is certainly welcome but that will also depend on what the ops_db maintainers think. |
Is there any way we can acquire an ATen IR graph? |
@zhiqwang Can you elaborate? |
@xiaowuhu @fatcat-z some ops I have seen recently: torch vision ops in https://github.com/pytorch/vision/blob/main/torchvision/ops/_register_onnx_ops.py (pending validation since we don't know what dynamo will give us). |
@justinchuby in some cases there are ops coming from extensions of torch such as torch_scatter that are not supported by ONNX and they are not a part of aten ops either. (E.g. scatter_max, scatter_min). |
We plan to support aten ops only but it should be very easy to create other ops as needed when one sees them |
This comment was marked as duplicate.
This comment was marked as duplicate.
why not implement in torchlib as no-op? |
ONNX Script doesn't have the concept of a device and we generally filter everything device-related out. I think it would be good if device info are stripped away before translation. |
Do you have context where this |
|
This comment was marked as duplicate.
This comment was marked as duplicate.
I found that PyTorch has been using this list: Core ATen ops: |
This is a list to be decomposed right? |
Yes, some of these are not implemented and not decomposed, so users are getting unsupported errors. We could either decompose ATen Core, or implement them. pytorch/pytorch#125894. |
@justinchuby what is the
|
Please leverage the torch.onnx.export(..., dynamo=True) option for this. It is available in the latest pytorch nightly build. Please let us know if you see any issues. |
Canonical ops: https://docs-preview.pytorch.org/90644/ir.html
The list below is an incomplete list of canonical ops + other ops ordered by usage. canonical ops are marked with
canonical
. Be sure the check the page above for the correct signature for the canonical version of an op.canonical
Yes
Yes
canonical
Yes
canonical
Yes
canonical
Yes
Yes
canonical
Yes
canonical
canonical
Yes
canonical
Yes
canonical
Yes
canonical
canonical
canonical
Yes
canonical
canonical
canonical
Yes
canonical
canonical
Yes
canonical
Yes
canonical
canonical
Yes
canonical
Yes
canonical
canonical
Yes
canonical
canonical
canonical
canonical
Yes
canonical
Yes
canonical
canonical
Yes
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
Yes
canonical
canonical
canonical
Yes
canonical
canonical
Yes
canonical
Yes
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
Yes
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
Yes
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
canonical
The text was updated successfully, but these errors were encountered: