-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ONNX] Support aten::bit_wise_not in fx-onnx exporter #94919
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
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/94919
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit ea118eb: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Could you add a TODO/FIXME comment and/or tracking issue if this is temp? |
We don't have it in torch.onnx.export API actually... So maybe not a temp... @_onnx_symbolic("aten::bitwise_not")
@_beartype.beartype
def bitwise_not(g: jit_utils.GraphContext, input):
if not symbolic_helper._is_bool(input):
raise errors.SymbolicValueError(
"ONNX export does NOT support exporting bitwise Not "
"for non-boolean input values",
input,
)
return g.op("Not", input) Concusion: ONNX export does NOT support exporting bitwise with INT dtype right now. |
[ghstack-poisoned]
@pytorchbot merge -g |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Pull Request resolved: pytorch#94919 Approved by: https://github.com/justinchuby, https://github.com/wschin
Stack from ghstack (oldest at bottom):