Skip to content

Encapsulate and Standardise C++ Ops (#3097) #3133

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

Closed
wants to merge 2 commits into from

Conversation

fmassa
Copy link
Member

@fmassa fmassa commented Dec 7, 2020

  • Encapsulate and standardize deform_conv2d (Encapsulate and standardize deform_conv2d #3074)

  • Rename files.

  • Standardizing method names.

  • Adding anonymous namespaces.

  • Applying C++ naming rules and alinging variable names across headers and cpp files.

  • Syncing names across implementations.

  • Rename deform_conv2d.h to deform_conv2d.cpp

  • Use header files:

  • Create header files for kernel implementation and remove definitions from vision_*.h files.
  • Eliminate unnecessary headers and ensure all cpp include their headers.
  • Change the naming convention for kernel implementations.

  • Remove the _param postfix from the variables and standardizing names.

  • Exposing public forward/backward methods to the C++ API and moving methods around to minimize git blame changes.

  • Encapsulate and standardize nms (Encapsulate and standardize nms #3081)

  • Syncing, where possible, the names of functions across devices.

  • Adding all internal functions in anonymous namespaces.

  • Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

  • Create foreach cpp file a separate header file with "public" functions.

  • Removing unnecessary repeated includes.

  • Update CMakeLists.txt to include all headers.

  • Encapsulate and standardize ps_roi_align (Encapsulate and standardize ps_roi_align #3082)

  • Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
    Syncing, where possible, the names of functions across devices.

  • Adding all internal functions in anonymous namespaces.

  • Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

  • Create foreach cpp file a separate header file with "public" functions.

  • Removing unnecessary repeated includes.

  • Encapsulate and standardize ps_roi_pool (Encapsulate and standardize ps_roi_pool #3084)

  • Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

  • Adding all internal functions in anonymous namespaces.

  • Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

  • Create foreach cpp file a separate header file with "public" functions.

  • Removing unnecessary repeated includes.

  • Encapsulate and standardize roi_align (Encapsulate and standardize roi_align #3085)

  • Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

  • Adding all internal functions in anonymous namespaces.

  • Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

  • Create foreach cpp file a separate header file with "public" functions.

  • Removing unnecessary repeated includes.

  • Encapsulate and standardize roi_pool (Encapsulate and standardize roi_pool  #3088)

  • Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

  • Adding all internal functions in anonymous namespaces.

  • Syncing variable names between the cpp files and their header files.

  • Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

  • Create foreach cpp file a separate header file with "public" functions.

  • Removing unnecessary repeated includes.

  • Encapsulate and standardize new_empty_tensor_op (Encapsulate and standardize new_empty_tensor_op #3089)

  • Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

  • Create foreach cpp file a separate header file with "public" functions.

  • Adding all internal functions in anonymous namespaces.

  • Convert to const ref all possible parameters.

  • Removing unnecessary repeated includes.

  • Encapsulate and standardize C++ Ops - Clean up (Encapsulate and standardize C++ Ops - Clean up #3094)

  • Removing unnecessary repeated includes.

  • Remove unnecessary vision_cpu.h, vision_cuda.h, autocast.h.

  • Fixing naming convention and correcting method names on macros.

  • Turn on clang formatter for cu files and fixing broken styles.

  • Replace "#ifndef ... #define ... #endif" with "#pragma once" on header files.

  • Adding operator methods in vision::ops namespace. (Adding operator methods in vision::ops namespace. #3096)

  • Adding operator methods in vision::ops namespace.

  • Replace general.h with macros.h

  • Adding vision.h to the necessary cpp files.

* Encapsulate and standardize deform_conv2d (pytorch#3074)

* Rename files.

* Standardizing method names.

* Adding anonymous namespaces.

* Applying C++ naming rules and alinging variable names across headers and cpp files.

* Syncing names across implementations.

* Rename deform_conv2d.h to deform_conv2d.cpp

* Use header files:
- Create header files for kernel implementation and remove definitions from vision_*.h files.
- Eliminate unnecessary headers and ensure all cpp include their headers.

* Change the naming convention for kernel implementations.

* Remove the _param postfix from the variables and standardizing names.

* Exposing public forward/backward methods to the C++ API and moving methods around to minimize git blame changes.

* Encapsulate and standardize nms (pytorch#3081)

* Syncing, where possible, the names of functions across devices.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Update CMakeLists.txt to include all headers.

* Encapsulate and standardize ps_roi_align (pytorch#3082)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
Syncing, where possible, the names of functions across devices.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize ps_roi_pool (pytorch#3084)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize roi_align (pytorch#3085)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize roi_pool  (pytorch#3088)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Syncing variable names between the cpp files and their header files.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize new_empty_tensor_op (pytorch#3089)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Create foreach cpp file a separate header file with "public" functions.

* Adding all internal functions in anonymous namespaces.

* Convert to const ref all possible parameters.

* Removing unnecessary repeated includes.

* Encapsulate and standardize C++ Ops - Clean up (pytorch#3094)

* Removing unnecessary repeated includes.

* Remove unnecessary vision_cpu.h, vision_cuda.h, autocast.h.

* Fixing naming convention and correcting method names on macros.

* Turn on clang formatter for cu files and fixing broken styles.

* Replace "#ifndef ... #define ... #endif" with "#pragma once" on header files.

* Adding operator methods in vision::ops namespace. (pytorch#3096)

* Adding operator methods in vision::ops namespace.

* Replace general.h with macros.h

* Adding vision.h to the necessary cpp files.
Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Dec 8, 2020
Summary:
* Encapsulate and standardize deform_conv2d (#3074)

* Rename files.

* Standardizing method names.

* Adding anonymous namespaces.

* Applying C++ naming rules and alinging variable names across headers and cpp files.

* Syncing names across implementations.

* Rename deform_conv2d.h to deform_conv2d.cpp

* Use header files:
- Create header files for kernel implementation and remove definitions from vision_*.h files.
- Eliminate unnecessary headers and ensure all cpp include their headers.

* Change the naming convention for kernel implementations.

* Remove the _param postfix from the variables and standardizing names.

* Exposing public forward/backward methods to the C++ API and moving methods around to minimize git blame changes.

* Encapsulate and standardize nms (#3081)

* Syncing, where possible, the names of functions across devices.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Update CMakeLists.txt to include all headers.

* Encapsulate and standardize ps_roi_align (#3082)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
Syncing, where possible, the names of functions across devices.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize ps_roi_pool (#3084)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize roi_align (#3085)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize roi_pool  (#3088)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Adding all internal functions in anonymous namespaces.

* Syncing variable names between the cpp files and their header files.

* Renaming C++/CUDA kernel files and moving operator code from header to cpp file.

* Create foreach cpp file a separate header file with "public" functions.

* Removing unnecessary repeated includes.

* Encapsulate and standardize new_empty_tensor_op (#3089)

* Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.

* Create foreach cpp file a separate header file with "public" functions.

* Adding all internal functions in anonymous namespaces.

* Convert to const ref all possible parameters.

* Removing unnecessary repeated includes.

* Encapsulate and standardize C++ Ops - Clean up (#3094)

* Removing unnecessary repeated includes.

* Remove unnecessary vision_cpu.h, vision_cuda.h, autocast.h.

* Fixing naming convention and correcting method names on macros.

* Turn on clang formatter for cu files and fixing broken styles.

* Replace "#ifndef ... #define ... #endif" with "#pragma once" on header files.

* Adding operator methods in vision::ops namespace. (#3096)

* Adding operator methods in vision::ops namespace.

* Replace general.h with macros.h

* Adding vision.h to the necessary cpp files.

Pull Request resolved: #3133

Reviewed By: datumbox

Differential Revision: D25369675

Pulled By: fmassa

fbshipit-source-id: 36b57ed735394a799f744ce161f2667c5f6c95c2
@fmassa
Copy link
Member Author

fmassa commented Dec 8, 2020

Merged in 63b9b61

@fmassa fmassa closed this Dec 8, 2020
@fmassa fmassa deleted the import_0ebbb0ab branch December 8, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants