Skip to content

Commit

Permalink
Add __version__ to __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-Y committed May 7, 2024
1 parent 74dd8eb commit e5fb59f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pytorch_warmup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from .untuned import UntunedLinearWarmup, UntunedExponentialWarmup
from .radam import RAdamWarmup, rho_fn, rho_inf_fn, get_offset

__version__ = "0.2.0.dev0"

__all__ = [
'BaseWarmup',
'LinearWarmup',
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[metadata]
version = attr: pytorch_warmup.__version__
license_files = LICENSE
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

setuptools.setup(
name="pytorch-warmup",
version="0.1.1",
author="Takenori Yamamoto",
author_email="yamamoto.takenory@gmail.com",
description="A PyTorch Extension for Learning Rate Warmup",
Expand Down

0 comments on commit e5fb59f

Please sign in to comment.