Skip to content

Commit bb45016

Browse files
committed
readme
1 parent a2c5a64 commit bb45016

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ gaf_net = GAFWrapper(
6767

6868
```
6969

70+
To set all `GAFWrapper` states within a network, use `set_filter_gradients_`
71+
72+
```python
73+
from GAF_microbatch_pytorch import set_filter_gradients_
74+
75+
set_filter_gradients_(net, False) # turning on / off
76+
77+
# or perhaps filter thresholds on some schedule
78+
79+
set_filter_gradients_(net, True, 0.98)
80+
```
81+
7082
## Todo
7183

7284
- [ ] replicate cifar results on single machine

0 commit comments

Comments
 (0)