Ai
1 Star 0 Fork 0

算法与编程之美/RAdam

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 857 Bytes
一键复制 编辑 原始数据 按行查看 历史
Liyuan Liu 提交于 2019-12-21 07:18 +08:00 . Update setup.py
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='llychinalz@gmail.com',
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,
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/algo_coding/RAdam.git
git@gitee.com:algo_coding/RAdam.git
algo_coding
RAdam
RAdam
master

搜索帮助