[DONOTMERGE] deform_conv2d with namespaces#2998
[DONOTMERGE] deform_conv2d with namespaces#2998datumbox wants to merge 11 commits intopytorch:masterfrom
Conversation
datumbox
left a comment
There was a problem hiding this comment.
I left some comments to give context to the changes.
Codecov Report
@@ Coverage Diff @@
## master #2998 +/- ##
==========================================
+ Coverage 72.36% 73.39% +1.02%
==========================================
Files 99 99
Lines 8820 8825 +5
Branches 1386 1391 +5
==========================================
+ Hits 6383 6477 +94
+ Misses 2005 1929 -76
+ Partials 432 419 -13
Continue to review full report at Codecov.
|
fmassa
left a comment
There was a problem hiding this comment.
Thanks for the PR Vasilis!
It's great that we are looking into improving the C++ layout / part of torchvision, it's a much-needed feature.
I'll let some C++ experts to comment in here, as my experience with C++ best practices is very limited.
cc @ezyang could you have a look and give suggestions on how we could potentially improve the current setup in torchvision? You've worked a bit on torchvision during the dispatcher refactoring PR, so it might still be fresh in your mind :-)
Most of the renaming stuff doesn't really matter. I did notice the weird camel casing when I originally did some dispatcher refactoring but it's totally an internal implementation detail. One thing that does matter, and is worth doing if you want to bundle a bunch of code motion up all at once, is getting implementations out of headers and into cpp files. Better header hygiene means faster recompile time which is definitely worth it if you can suffer through having to declare everything twice. |
- Create header files for kernel implementation and remove definitions from vision_*.h files. - Eliminate unnecessary headers and ensure all cpp include their headers.
…thods around to minimize git blame changes.
Proof of concept for #2956
_parampostfix from the variables (DeformConv2d specific detail).cc @fmassa @mthrok