Skip to content
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

[Relay to Onnx][LRN] #8323

Merged
merged 9 commits into from Jun 26, 2021
Merged

[Relay to Onnx][LRN] #8323

merged 9 commits into from Jun 26, 2021

Conversation

schilkunda-amba
Copy link
Contributor

  • Added support for LRN operator in relay to onnx conversion
  • Added unit test

zxy844288792 and others added 2 commits June 24, 2021 01:28
@schilkunda-amba schilkunda-amba changed the title Relay to onnx LRN [Relay to Onnx][LRN] Jun 24, 2021
@schilkunda-amba schilkunda-amba marked this pull request as draft June 24, 2021 06:36
@schilkunda-amba schilkunda-amba marked this pull request as ready for review June 24, 2021 06:56
@trevor-m trevor-m self-assigned this Jun 24, 2021
"beta": attrs.beta,
"bias": attrs.bias,
"size": attrs.size
# axis?
Copy link
Contributor

@trevor-m trevor-m Jun 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove comment.

It looks like the ONNX LRN op doesn't have an axis parameter, as it always applies to axis 1.
We should probably add assert somewhere to check that the axis is also 1 in the Relay operator that is being converted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have added the axis check.

Copy link
Contributor

@trevor-m trevor-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@masahi masahi merged commit 4fd12b7 into apache:main Jun 26, 2021
@schilkunda-amba schilkunda-amba deleted the relay_to_onnx_LRN branch June 28, 2021 16:59
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
* Added support for LRN operator

* [Relay to Onnx]

* Added unit test case for LRN

* * reformatted

* * reformatted (2)

* * fixed formatting issues in relay to onnx conversion script

* * fixed formatting
* change single quotes to double
* set space to 4 instead of 2

* * reformatted onnx.py: corrected spaces

* [Relay to Onnx] LRN

* Assert if axis != 1

* * fixed formatting

Co-authored-by: zxy844288792 <zhoxingy@amazon.com>
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
* Added support for LRN operator

* [Relay to Onnx]

* Added unit test case for LRN

* * reformatted

* * reformatted (2)

* * fixed formatting issues in relay to onnx conversion script

* * fixed formatting
* change single quotes to double
* set space to 4 instead of 2

* * reformatted onnx.py: corrected spaces

* [Relay to Onnx] LRN

* Assert if axis != 1

* * fixed formatting

Co-authored-by: zxy844288792 <zhoxingy@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants