File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 22
33import os
44
5- if (os .getenv ('KERAS_IMPLEMENTATION' , 'keras' ) == 'tensorflow' ):
6- from tensorflow .python .keras .callbacks import Callback
7- else :
5+ if (os .getenv ('KERAS_IMPLEMENTATION' , 'tensorflow' ) == 'keras' ):
86 from keras .callbacks import Callback
7+ else :
8+ from tensorflow .python .keras .callbacks import Callback
99
1010class RCallback (Callback ):
1111
Original file line number Diff line number Diff line change 11
22import os
33
4- if (os .getenv ('KERAS_IMPLEMENTATION' , 'keras' ) == 'tensorflow' ):
5- from tensorflow .python .keras .constraints import Constraint
6- else :
4+ if (os .getenv ('KERAS_IMPLEMENTATION' , 'tensorflow' ) == 'keras' ):
75 from keras .constraints import Constraint
6+ else :
7+ from tensorflow .python .keras .constraints import Constraint
88
99class RConstraint (Constraint ):
1010
Original file line number Diff line number Diff line change 66
77import os
88
9- if (os .getenv ('KERAS_IMPLEMENTATION' , 'keras' ) == 'tensorflow' ):
10- from tensorflow .python .keras .utils import Progbar
11- else :
9+ if (os .getenv ('KERAS_IMPLEMENTATION' , 'tensorflow' ) == 'keras' ):
1210 from keras .utils import Progbar
11+ else :
12+ from tensorflow .python .keras .utils import Progbar
1313
1414def apply_patch ():
1515
You can’t perform that action at this time.
0 commit comments