📜  序列化 keras 模型 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:18.742000             🧑  作者: Mango

代码示例1
# Save the modelmodel.save('path_to_my_model.h5')# Recreate the exact same model purely from the filenew_model = keras.models.load_model('path_to_my_model.h5')