there's is a bug while running the Tensorflow code, the error code appears like this:
Traceback (most recent call last):
File "app.py", line 76, in <module>
model = deepmoji_emojis(maxlen, PRETRAINED_PATH)
File "/home/lifeofpy/LifeofPy/AI Photographer Project/Text-to-Color/deepmoji/model_def.py", line 35, in deepmoji_emojis
model._make_predict_function()
AttributeError: 'Functional' object has no attribute '_make_predict_function
and the file app.py is like this:
# print('Loading model from {}.'.format(PRETRAINED_PATH))
model = deepmoji_emojis(maxlen, PRETRAINED_PATH)
model.summary()
model._make_predict_function()
I think the error message is occured by the function 'model._make_predict_function', I would appreciate any comments on this issue. Thanks!
deepmoji_emojis? Maybe it doesn't givemodelbut something different._make_predict_function()? I tried to find it with Google and it seems it was private function in Keras but probably it was removed from code._make_predict_function()too, but I wasn't able to find it. Maybe it was an old version of Keras code, and switched to another code. So I'm wondering if there's a new version of_make_predict_function()Some old posts suggest to use model.predict() ...