move flatten_dense_tensors and unflatten_dense_tensors to Native#58006
move flatten_dense_tensors and unflatten_dense_tensors to Native#58006eqy wants to merge 5 commits intopytorch:masterfrom
flatten_dense_tensors and unflatten_dense_tensors to Native#58006Conversation
💊 CI failures summary and remediationsAs of commit 976415b (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Codecov Report
@@ Coverage Diff @@
## master #58006 +/- ##
=======================================
Coverage 76.83% 76.83%
=======================================
Files 1986 1986
Lines 197712 197702 -10
=======================================
- Hits 151911 151909 -2
+ Misses 45801 45793 -8 |
|
Please resolve conflicts, otherwise looks good. Can you also please run benchmarks similar to original issue and post results here? |
I tried crafting my own microbenchmarks but while there was a speedup for Flatten (old): Flatten (new): (I assume the time to load op is dependent on something being cached as the long time seemed to happen after swapping out the installed version of pytorch). Unflatten (new): |
|
@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…ytorch#58006) Summary: pytorch#55240 CC ngimel Pull Request resolved: pytorch#58006 Reviewed By: agolynski Differential Revision: D28386749 Pulled By: ngimel fbshipit-source-id: 4860c35d5ff95bcc38a243d7001180e7bd536314
#55240
CC @ngimel