Skip to content

Commit

Permalink
Update version to 0.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
PistonY committed Aug 3, 2020
1 parent 338873e commit 8696614
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,18 @@ init = ZeroLastGamma(block_name='Bottleneck', bn_name='bn3')
model.apply(init)
```

#### 15. SGC_GC
[Gradient Centralization: A New Optimization Technique for Deep Neural Networks](https://arxiv.org/pdf/2004.01461.pdf)

```python
from torchtoolbox.optimizer import SGD_GC

optimizer = SGD_GC(model.parameters())
optimizer.zero_grad()
loss.backward()
optimizer.step()

```

## Contribution

Expand Down
2 changes: 1 addition & 1 deletion torchtoolbox/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# Author: pistonyang@gmail.com

VERSION = '0.1.4.1'
VERSION = '0.1.5'

0 comments on commit 8696614

Please sign in to comment.