Skip to content

Commit

Permalink
Merge pull request #21 from aniketmaurya/master
Browse files Browse the repository at this point in the history
Updated code to tensorflow 2.x
  • Loading branch information
bckenstler authored Jun 5, 2020
2 parents 9d7fb53 + c41751c commit 968cf5a
Show file tree
Hide file tree
Showing 3 changed files with 624 additions and 141 deletions.
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .clr_callback import CyclicLR
4 changes: 3 additions & 1 deletion clr_callback.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from keras.callbacks import *
from tensorflow.keras.callbacks import *
from tensorflow.keras import backend as K
import numpy as np

class CyclicLR(Callback):
"""This callback implements a cyclical learning rate policy (CLR).
Expand Down
Loading

0 comments on commit 968cf5a

Please sign in to comment.