Skip to content

Conversation

@YuanRisheng
Copy link
Contributor

@YuanRisheng YuanRisheng commented Nov 9, 2021

对save/load用户提问的解答
1,paddle 2.x 如何保存模型文件?如何保存paddle 1.x 中的 model 文件?
2,paddle如何单独load存下来的所有模型变量中某一个变量,然后修改变量中的值?

@paddle-bot-old
Copy link

paddle-bot-old bot commented Nov 9, 2021

Thanks for your contribution!

##### 问题:paddle 2.x 如何保存模型文件?如何保存paddle 1.x 中的 model 文件?
+ 答复:

1. 在paddle2.x可使用``paddle.jit.save/load``接口以及``paddle.static.save/load_inference_model``来保存成类似paddle1.x中的model文件和param文件。详情可参考:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

保存成类似paddle1.x中的model文件和param文件,这里有些差别吧,要不要写清楚和1.x有什么差别,主要是保存的默认文件名有所不同,或者确认文档中是否有说明

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@TCChenlong TCChenlong merged commit 298ba1e into PaddlePaddle:develop Nov 11, 2021
YuanRisheng added a commit to YuanRisheng/docs that referenced this pull request Nov 11, 2021
* add faq of save/load

* fix ci-bugs for save/load faq

* perfect save/load faq
TCChenlong pushed a commit that referenced this pull request Nov 11, 2021
* add faq of save/load

* fix ci-bugs for save/load faq

* perfect save/load faq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants