model.save
时间: 2023-08-26 11:13:27 浏览: 99
model.save()是Keras中用来保存整个模型(包括模型的结构和参数)的方法。通过调用model.save(filepath)函数,可以将模型的结构以及参数保存到指定的filepath文件中。保存后的模型可以使用keras.models.load_model(filepath)函数来加载并恢复网络结构和网络参数。这个方法保存的模型文件大小相对较大,因为它保存了整个模型的图结构和参数。 [1 [2<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [同样是保存模型,model.save()和model. save_weights ()有何区别](https://blog.csdn.net/hhhhhhhhhhwwwwwwwwww/article/details/109557652)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [模型的保存与下载](https://blog.csdn.net/weixin_52205096/article/details/123079301)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *3* [17.初识Pytorch保存模型(model save)与加载模型(model load)](https://blog.csdn.net/XiaoyYidiaodiao/article/details/122627694)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文