📜  无法在只读模式下创建组. keras - Python 代码示例

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

代码示例2
import json

# lets assume `model` is main model 
model_json = model.to_json()
with open("model_in_json.json", "w") as json_file:
    json.dump(model_json, json_file)

model.save_weights("model_weights.h5")