forked from LiyuanLucasLiu/RAdam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
30 lines (26 loc) · 857 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
from setuptools import setup, find_packages
import re
try:
import torch
has_dev_pytorch = "dev" in torch.__version__
except ImportError:
has_dev_pytorch = False
# Base equirements
install_requires = [
"torch",
]
if has_dev_pytorch: # Remove the PyTorch requirement
install_requires = [
install_require for install_require in install_requires
if "torch" != re.split(r"(=|<|>)", install_require)[0]
]
setup(
name='RAdam',
version='0.0.1',
url='https://github.com/LiyuanLucasLiu/RAdam.git',
author='Liyuan Liu',
author_email='[email protected]',
description='Implementation of the RAdam optimization algorithm described in On the Variance of the Adaptive Learning Rate and Beyond (https://arxiv.org/abs/1908.03265)',
packages=find_packages(),
install_requires=install_requires,
)