We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f3bde commit e9eb221Copy full SHA for e9eb221
art/estimators/classification/keras.py
@@ -126,9 +126,9 @@ def __init__(
126
self._input_layer = input_layer
127
self._output_layer = output_layer
128
129
- if "<class 'tensorflow" in str(type(model)):
+ if "<class 'tensorflow" in str(type(model).__mro__):
130
self.is_tensorflow = True
131
- elif "<class 'keras" in str(type(model)):
+ elif "<class 'keras" in str(type(model).__mro__):
132
self.is_tensorflow = False
133
else:
134
raise TypeError("Type of model not recognized:" + str(type(model)))
0 commit comments