Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFuse operators inside of the (CPU) glu operator. #26418
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
I'll take this up. Is it mostly about adding a at::parallel_for? |
This comment has been minimized.
This comment has been minimized.
|
This can be done after #26410 landed, and will require writing new ternary loop which does sigmoid and mul in one loop. |
This comment has been minimized.
This comment has been minimized.
|
Sure, I'll wait for that. I've used pytorch before, but I'm new to the codebase. Can you pls. sketch out roughly how to go about adding this support, like which API's to use, which files may need to updated, or a PR that does something similar? Thanks! |
This comment has been minimized.
This comment has been minimized.
|
I'm actually going to take this because I want an end-to-end change to benchmark. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current implementation does sequential
sigmoid_outandmul_. We can get better performance by fusing this operations together.