-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from meikuam/master
pytorch 1.2.0 c++ interface (new-style torch.autograd.Function)
- Loading branch information
Showing
8 changed files
with
79 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .roi_align import RoIAlign, CropAndResizeFunction | ||
from .roi_align import RoIAlign, CropAndResizeFunction, CropAndResize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ | |
modules = [ | ||
CppExtension( | ||
'roi_align.crop_and_resize_cpu', | ||
['roi_align/src/crop_and_resize.cpp'] | ||
['roi_align/src/crop_and_resize.cpp'], | ||
extra_compile_args={'cxx': ['-g', '-fopenmp']} | ||
) | ||
] | ||
|
||
|
@@ -22,7 +23,7 @@ | |
|
||
setup( | ||
name='roi_align', | ||
version='0.0.1', | ||
version='0.0.2', | ||
description='PyTorch version of RoIAlign', | ||
author='Long Chen', | ||
author_email='[email protected]', | ||
|
@@ -31,5 +32,5 @@ | |
|
||
ext_modules=modules, | ||
cmdclass={'build_ext': BuildExtension}, | ||
install_requires=['torch'] | ||
install_requires=['torch>=1.2.0'] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters