-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Create DFT-20 #5514
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
Create DFT-20 #5514
Conversation
840a8c0
to
a4bf5ae
Compare
Signed-off-by: Justin Chu <justinchu@microsoft.com>
a4bf5ae
to
a9db6ad
Compare
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
int dim_size = result_shape_proto.dim_size(); | ||
result_shape_proto.mutable_dim(dim_size - 1)->set_dim_value(2); | ||
updateOutputShape(ctx, output_index, result_shape_proto); | ||
ONNX_ASSERTM( |
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.
Was this meant for debugging? Seems a very local, straightforward, assertion, wonder if we need it. (nit)
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.
It was meant to guard a segfault because new_shape_proto.mutable_dim()
will not fail gracefully (when there is a bug)
Merging for now! Will follow up as needed |
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.
The release CIs for testing older NumPy version (1.16.6) seems failed after this PR. @justinchuby could you please take a closer look? I suspect this is related to DFT's reference implementation. The tests with the latest NumPy is fine, but the tests for NumPy==1.16.6 failed: https://github.com/onnx/onnx/actions/runs/6280136187/job/17056899644.
Implement version converter to complete DFT-20. Requires #5514 Reference: #5514 (comment) --------- Signed-off-by: Justin Chu <justinchu@microsoft.com> Signed-off-by: Ganesan Ramalingam <grama@microsoft.com> Co-authored-by: Ganesan Ramalingam <grama@microsoft.com>
Description
axis
attribute to input inDFT-20
and default it to-2
.axis
is now input number2
, after dft_length.SoftmaxFamilyDocGenerator
to defs and move utilities into theONNX_NAMESPACE::defs::math::utils
namespaceChecklist
defs.cc
old.cc
onnx/defs/operator_sets.h
oronnx/defs/operator_sets_ml.h
test_backend_onnxruntime.py
auto update doc
label on the GitHub pull request to update the generated documentationMotivation and Context
Fixes #5447 Fixes #5493
Reference
https://github.com/openxla/xla/blob/main/docs/operation_semantics.md#fft