-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[ONNX] Handle sequence output shape and type inference #46542
Conversation
…oof/functionalization # Conflicts: # aten/src/ATen/core/ivalue.h # aten/src/ATen/core/ivalue_inl.h # aten/src/ATen/native/TestOps.cpp # aten/src/ATen/native/native_functions.yaml # test/test_native_functions.py # tools/autograd/gen_autograd_functions.py # tools/jit/gen_unboxing_wrappers.py # torch/csrc/utils/python_arg_parser.h
…oof/functionalization
…oof/functionalization
…oof/functionalization
…oof/functionalization
…oof/functionalization
…orch into neraoof/functionalization
…oof/functionalization
…oof/functionalization
…oof/functionalization
…oof/functionalization
…orch into neraoof/functionalization
…oof/functionalization
@bzinodev Thanks a lot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a change to ONNX export API as know it can return lists.
We need more description of this change and discuss if we are break backward compatibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@bzinodev |
…orch into neraoof/opset13 # Conflicts: # test/onnx/test_pytorch_onnx_onnxruntime.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzinodev has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…oof/functionalization
PR to fix broken mypy tests: #50571 |
Hi @neginraoof, there's an "unland" for this diff that's already in progress (we actively revert changes when tests fail). Can you re-submit the original diff including the fix from 50571 (once the reverting change finishes landing)? |
This pull request has been reverted by a9db2f8. |
Handle sequence output shape and type inference.
This PR fixes value type of sequence outputs. Prior to this, all model sequence type outputs were unfolded for ONNX models.
This PR also enable shape inference for sequence outputs to represent the dynamic shape of these values.