You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/luyafei/Downloads/code/DeepTextMatch/SBERT/run.py", line 142, in
model.fit(train_generator.forfit(),
File "/Users/luyafei/opt/anaconda3/envs/py3-tf2-new/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/Users/luyafei/opt/anaconda3/envs/py3-tf2-new/lib/python3.9/site-packages/keras/layers/serialization.py", line 117, in populate_deserializable_objects
LOCAL.ALL_OBJECTS['Functional'] = models.Functional
AttributeError: module 'keras.api._v2.keras.models' has no attribute 'Functional'
model.save() 保存SavedModel时,报错:
Traceback (most recent call last):
File "/Users/luyafei/Downloads/code/DeepTextMatch/SBERT/run.py", line 142, in
model.fit(train_generator.forfit(),
File "/Users/luyafei/opt/anaconda3/envs/py3-tf2-new/lib/python3.9/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/Users/luyafei/opt/anaconda3/envs/py3-tf2-new/lib/python3.9/site-packages/keras/layers/serialization.py", line 117, in populate_deserializable_objects
LOCAL.ALL_OBJECTS['Functional'] = models.Functional
AttributeError: module 'keras.api._v2.keras.models' has no attribute 'Functional'
提问时请尽可能提供如下信息:
基本信息
核心代码
输出信息
# 请在此处贴上你的调试输出
自我尝试
不管什么问题,请先尝试自行解决,“万般努力”之下仍然无法解决再来提问。此处请贴上你的努力过程。
The text was updated successfully, but these errors were encountered: