Skip to content

Commit

Permalink
Add cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
devzhk committed Jun 15, 2021
1 parent 49f26c9 commit 724be0f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 24 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Then you need to specify the `device`, `learning rate`s.

Example:
```python
import CGDs

from src import CGDs
import torch
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
optimizer = CGDs.ACGD(max_param=model_G.parameters(), min_params=model_D.parameters(),
Expand Down
24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[metadata]
name = CGDs
version = 0.0.4
author = Hongkai Zheng
author_email = [email protected]
description = Adaptive Competitive Gradient Descent optimizer
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/devzhk/cgds-package
project_urls =
Bug Tracker = https://github.com/devzhk/cgds-package/issues
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = src
23 changes: 0 additions & 23 deletions setup.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 724be0f

Please sign in to comment.