def test_model(self):
model = load_model(self.PATH)
intermediate_layer_model = Model(
input=model.input, output=model.get_layer("utter").output)
tensorflow throws an error
Traceback (most recent call last):
File "baseline/baseline.py", line 288, in <module>
model.train_model()
File "baseline/baseline.py", line 228, in train_model
self.test_model()
File "baseline/baseline.py", line 235, in test_model
intermediate_layer_model = Model(input=model.input, output=model.get_layer("utter").output)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/tracking/base.py", line 457, in _method_wrapper
result = method(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py", line 262, in __init__
'name', 'autocast'})
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/utils/generic_utils.py", line 778, in validate_kwargs
raise TypeError(error_message, kwarg)
TypeError: ('Keyword argument not understood:', 'input')
Perhaps utter is not the right name of the layer?
Running on python3.6, running below python packages
Whenever below is called,
tensorflow throws an error
Perhaps
utter
is not the right name of the layer?Running on python3.6, running below python packages