-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (28 loc) · 1.15 KB
/
setup.py
File metadata and controls
31 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CUDA_HOME
modules= []
# TODO WE ASSUME THAT CUDA IS AVAILABLE
# if CUDA_HOME:
modules.append(
CUDAExtension('binarization', [
'pysembles/cuda/binarization/binarization.cpp',
'pysembles/cuda/binarization/binarize_cuda.cu',
]),
)
setup(name='Pysembles',
version='0.2',
description='Common ensemble approaches for PyTorch models and some soft decision tree approaches. Also includes some code for training binarized neural networks. Many thanks at Mikail Yayla (mikail.yayla@tu-dortmund.de) for providing CUDA kernels for BNN training. He maintains a more evolved repository on BNNs - check it out at https://github.com/myay/BFITT',
url='https://github.com/sbuschjaeger/deep_ensembles_v2/',
author=u'Sebastian Buschjäger',
author_email='sebastian.buschjaeger@tu-dortmund.de',
license='MIT',
packages=find_packages(),
zip_safe=False,
install_requires = [
'torch'
],
ext_modules=modules,
cmdclass={
'build_ext': BuildExtension
}
)