forked from kakaobrain/torchlars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.37 KB
/
setup.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
about = {}
with open('torchlars/__version__.py') as f:
exec(f.read(), about)
version = about['__version__']
del about
with open('README.md') as f:
long_description = f.read()
setup(
name='torchlars',
version=version,
author='Kakao Brain',
maintainer='Chunmyong Park',
ext_modules=[
CUDAExtension('torchlars._adaptive_lr', [
'torchlars/adaptive_lr.cc',
'torchlars/adaptive_lr_cuda.cu',
]),
],
cmdclass={'build_ext': BuildExtension},
description='A LARS implementation in PyTorch',
long_description=long_description,
long_description_content_type='text/markdown',
zip_safe=False,
packages=['torchlars'],
install_requires=['torch'],
setup_requires=['pytest-runner'],
tests_require=['pytest>=4'],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
)