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")

本文标签: tensorflowAttributeError module 39kerasapiv2keraslayers39 has no attribute 39TFSMLayer39Stack Overflow