Skip to content

Commit 1b37223

Browse files
committed
fix setup bug
1 parent 56015fe commit 1b37223

6 files changed

+8
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pip install --upgrade git+https://github.com/leftthomas/CARAFE.git@master
2121

2222
## Example
2323
```python
24-
from carafe.carafe import CARAFE, CARAFENaive
24+
from carafe import CARAFE, CARAFENaive
2525
module = CARAFE(kernel_size=5, group_size=1, scale_factor=4)
2626
module = CARAFENaive(kernel_size=5, group_size=1, scale_factor=4)
2727
```

setup.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,21 @@
1616
license='MIT',
1717
ext_modules=[
1818
CUDAExtension(
19-
'carafe_cuda',
20-
['src/cuda/carafe_cuda.cpp', 'src/cuda/carafe_cuda_kernel.cu'],
19+
'carafe_ext',
20+
['src/carafe_ext.cpp', 'src/carafe_cuda.cpp', 'src/carafe_cuda_kernel.cu'],
2121
extra_compile_args={
2222
'cxx': [],
2323
'nvcc': NVCC_ARGS
2424
}),
2525
CUDAExtension(
26-
'carafe_naive_cuda',
27-
['src/cuda/carafe_naive_cuda.cpp', 'src/cuda/carafe_naive_cuda_kernel.cu'],
26+
'carafe_naive_ext',
27+
['src/carafe_naive_ext.cpp', 'src/carafe_naive_cuda.cpp', 'src/carafe_naive_cuda_kernel.cu'],
2828
extra_compile_args={
2929
'cxx': [],
3030
'nvcc': NVCC_ARGS
3131
})
3232
],
33+
package_data={'.': ['*.so']},
3334
cmdclass={'build_ext': BuildExtension},
34-
install_requires=['torch'])
35+
zip_safe=False,
36+
install_requires=['torch>=1.5'])
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)