Skip to content

Commit 6db261e

Browse files
author
Sigrid Keydana
committed
fixed wrong default in Python os.getenv
1 parent 045472b commit 6db261e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

inst/python/kerastools/layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import os
33

4-
if (os.getenv('KERAS_IMPLEMENTATION', 'keras') == 'keras'):
4+
if (os.getenv('KERAS_IMPLEMENTATION', 'tensorflow') == 'keras'):
55
from keras.engine.topology import Layer
66
def shape_filter(shape):
77
return shape

inst/python/kerastools/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44

5-
if (os.getenv('KERAS_IMPLEMENTATION', 'keras') == 'keras'):
5+
if (os.getenv('KERAS_IMPLEMENTATION', 'tensorflow') == 'keras'):
66
from keras.engine import Model
77
else:
88
try:

inst/python/kerastools/wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
if (os.getenv('KERAS_IMPLEMENTATION', 'keras') == 'keras'):
3+
if (os.getenv('KERAS_IMPLEMENTATION', 'tensorflow') == 'keras'):
44
from keras.layers import Wrapper
55
def shape_filter(shape):
66
return shape

0 commit comments

Comments
 (0)