Skip to content

lower native_dropout#5643

Merged
zpcore merged 8 commits intomasterfrom
piz/codegen-1
Sep 26, 2023
Merged

lower native_dropout#5643
zpcore merged 8 commits intomasterfrom
piz/codegen-1

Conversation

@zpcore
Copy link
Copy Markdown
Member

@zpcore zpcore commented Sep 25, 2023

Fix #5588.

Added the manual lowering for native_dropout op. We need to add the test to verify whether the logic is correct or not.

Comment thread torch_xla/csrc/ops/native_dropout.cpp
Comment thread torch_xla/csrc/ops/native_dropout.cpp
@lsy323 lsy323 changed the title Piz/codegen 1 lower native_dropout Sep 25, 2023
Comment thread test/cpp/test_aten_xla_tensor_1.cpp Outdated
Comment thread torch_xla/csrc/ops/native_dropout.cpp Outdated
Comment thread torch_xla/csrc/ops/native_dropout.cpp Outdated
Comment thread test/cpp/test_aten_xla_tensor_1.cpp
Comment thread test/cpp/test_aten_xla_tensor_1.cpp Outdated
Comment thread test/cpp/test_aten_xla_tensor_1.cpp Outdated
Comment thread torch_xla/csrc/tensor_methods.cpp Outdated
@zpcore zpcore added lowering ATen Operation lowering and removed codegen labels Sep 25, 2023
Comment thread torch_xla/csrc/xla_lower_util.cpp Outdated
Comment thread torch_xla/csrc/ops/native_dropout.cpp
Comment thread torch_xla/csrc/ops/native_dropout.cpp Outdated
Comment thread torch_xla/csrc/xla_lower_util.cpp Outdated
Comment thread torch_xla/csrc/ops/native_dropout.cpp Outdated
Comment thread torch_xla/csrc/xla_lower_util.cpp Outdated
Comment thread test/cpp/test_aten_xla_tensor_1.cpp Outdated
Comment thread torch_xla/csrc/xla_lower_util.cpp Outdated
Comment thread torch_xla/csrc/ops/native_dropout.cpp
@lsy323
Copy link
Copy Markdown
Collaborator

lsy323 commented Sep 26, 2023

@zpcore Thanks for working on this, good work!

@zpcore zpcore merged commit 2c6e4a7 into master Sep 26, 2023
@zpcore
Copy link
Copy Markdown
Member Author

zpcore commented Sep 26, 2023

Thanks @JackCaoG and @lsy323 for the feedback, it's a great learning experience!

@zpcore zpcore deleted the piz/codegen-1 branch September 26, 2023 16:45
Comment thread test/cpp/test_aten_xla_tensor_1.cpp
ManfeiBai pushed a commit that referenced this pull request Sep 26, 2023
* prototype version (compiling error)

* Add native_dropout manual lowering.

* fix to tensor IR and add a simple native_dropout test

* fix data type issue and update test case

* fix IR hash issue

* fix corner case when probability==0

* remove typo line

* add test case when probability=0
ManfeiBai added a commit that referenced this pull request Sep 26, 2023
…5647)

* lower NativeDropoutBackward (#5642)

* lower NativeDropoutBackward

* fix lowering and add python test

* lower native_dropout (#5643)

* prototype version (compiling error)

* Add native_dropout manual lowering.

* fix to tensor IR and add a simple native_dropout test

* fix data type issue and update test case

* fix IR hash issue

* fix corner case when probability==0

* remove typo line

* add test case when probability=0

---------

Co-authored-by: JackCaoG <59073027+JackCaoG@users.noreply.github.com>
Co-authored-by: zpcore <piz@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lowering ATen Operation lowering

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OP lowering for op native_dropout

4 participants