mirror of https://github.com/open-mmlab/mmcv.git
minor refine
parent
a0c37412e3
commit
b6eb47c55e
|
@ -1,6 +1,7 @@
|
||||||
#include <torch/csrc/DynamicTypes.h>
|
#include <torch/csrc/DynamicTypes.h>
|
||||||
#include <torch/csrc/autograd/variable.h>
|
#include <torch/csrc/autograd/variable.h>
|
||||||
#include <torch/csrc/python_headers.h>
|
#include <torch/csrc/python_headers.h>
|
||||||
|
#include <torch/csrc/autograd/python_variable.h>
|
||||||
#include <torch/csrc/utils/invalid_arguments.h>
|
#include <torch/csrc/utils/invalid_arguments.h>
|
||||||
#include <torch/csrc/utils/python_strings.h>
|
#include <torch/csrc/utils/python_strings.h>
|
||||||
#include <torch/csrc/utils/python_tuples.h>
|
#include <torch/csrc/utils/python_tuples.h>
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -351,7 +351,8 @@ def get_extensions():
|
||||||
else:
|
else:
|
||||||
print(f'Compiling {ext_name} only with CPU')
|
print(f'Compiling {ext_name} only with CPU')
|
||||||
op_files = glob.glob('./mmcv/ops/csrc/pytorch/*.cpp') + \
|
op_files = glob.glob('./mmcv/ops/csrc/pytorch/*.cpp') + \
|
||||||
glob.glob('./mmcv/ops/csrc/pytorch/cpu/*.cpp')
|
glob.glob('./mmcv/ops/csrc/pytorch/cpu/*.cpp') + \
|
||||||
|
glob.glob('./mmcv/ops/csrc/common/*.cpp')
|
||||||
extension = CppExtension
|
extension = CppExtension
|
||||||
include_dirs.append(os.path.abspath('./mmcv/ops/csrc/common'))
|
include_dirs.append(os.path.abspath('./mmcv/ops/csrc/common'))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue