-
Notifications
You must be signed in to change notification settings - Fork 610
[TORCH][MLIR] Add E2E support for aten.native_layer_norm_backward op.
#546
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
83a4094 to
8dc4dc4
Compare
c9fee2e to
aaaef5d
Compare
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.
Left some comments. Haven't done reviewing yet.
624de1e to
5a9f66f
Compare
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.
Still haven't done reviewing but I am wondering if you've considered implementing this in DecomposeComplexOps?
I was following the previous code of |
f9dbf33 to
04bfc4c
Compare
This commit fixs the lowering of `aten.native_layer_norm` operation. Previously this operation was not calculating correct shapes for mean and inverted STD. This has been corrected in this commit. Some new helper functions are added to calculate the inverted STD and to broadcast a given input with the help of a broadcast mask. Signed-Off-By: Prateek Gupta <prateek@nod-labs.com>
This commit adds support for `aten.native_layer_norm_backward` operation. It also adds support for matching constant bools stored in a boolean list. Signed-Off-By: Prateek Gupta <prateek@nod-labs.com>
04bfc4c to
d2cd480
Compare
Hi @cathyzhyi I tried to use the DecomposeComplexOps, but the preprocessing(Checking of requirements) of both the lowerings viz |
Yea, @Shukla-Gaurav has a PR for adding assert into Torch dialect #564. We can use that once it's merged. |
|
Opened the PR at (#570) |
* change dialect Signed-off-by: chentong <chentong@us.ibm.com> * fix pad Signed-off-by: chentong <chentong@us.ibm.com> * Reshape Signed-off-by: chentong <chentong@us.ibm.com> * format Signed-off-by: chentong <chentong@us.ibm.com> * adjust test Signed-off-by: chentong <chentong@us.ibm.com> * docs Signed-off-by: chentong <chentong@us.ibm.com> * remove the code Signed-off-by: chentong <chentong@us.ibm.com> * clean gen_onnx_mlir Signed-off-by: chentong <chentong@us.ibm.com> * format Signed-off-by: chentong <chentong@us.ibm.com>
This PR adds two commits:
aten.native_layer_norm_backwardoperation. It also adds support for matching constant bools stored in a boolean list.aten.native_layer_norm. Previously this operation was not calculating correct shapes for mean and inverted STD. This has been corrected in this commit. Some new helper functions are added to calculate the inverted STD and to broadcast a given input with the help of a broadcast mask.Signed-Off-By: Prateek Gupta prateek@nod-labs.com