-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
32 lines (31 loc) · 874 Bytes
/
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
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CppExtension
setup(
name='fast_sligru',
ext_modules=[
CppExtension(
'fast_sligru_cpp',
[
'fast_sligru/csrc/sligru_kernel.cu',
'fast_sligru/csrc/rnns.cpp',
'fast_sligru/csrc/ligru_kernel.cu',
]
),
],
cmdclass={
'build_ext': BuildExtension
},
version="0.1.0",
author="Adel Moumen",
author_email="[email protected]",
description="A fast CUDA implementation of the SLiGRU model.",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
],
packages=find_packages(),
install_requires=[
"torch",
],
python_requires=">=3.8",
)