admin管理员组文章数量:1022853
AttributeError: module 'keras.api._v2.keras.layers' has no attribute 'TFSMLayer' Traceback: File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "/home/user/app/app.py", line 10, in model = tf.keras.layers.TFSMLayer("./saved_model", call_endpoint="serving_default")
AttributeError: module 'keras.api._v2.keras.layers' has no attribute 'TFSMLayer' Traceback: File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling result = func() File "/usr/local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec exec(code, module.dict) File "/home/user/app/app.py", line 10, in model = tf.keras.layers.TFSMLayer("./saved_model", call_endpoint="serving_default")
版权声明:本文标题:tensorflow - AttributeError: module 'keras.api._v2.keras.layers' has no attribute 'TFSMLayer' - 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745575309a2156982.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论