Skip to content

Update hapi.model._save_inference_model by using new features of dy2stat in 2.0-beta API#27272

Merged
guoshengCS merged 13 commits intoPaddlePaddle:developfrom
LiuChiachi:update_save_inference_model_using_2.0-beta_dy2sta
Sep 17, 2020
Merged

Update hapi.model._save_inference_model by using new features of dy2stat in 2.0-beta API#27272
guoshengCS merged 13 commits intoPaddlePaddle:developfrom
LiuChiachi:update_save_inference_model_using_2.0-beta_dy2sta

Conversation

@LiuChiachi
Copy link
Contributor

@LiuChiachi LiuChiachi commented Sep 11, 2020

PR types

New features

PR changes

APIs

Describe

This PR solved 3 TODOs in last PR #25894 about hapi.model._save_inference_model by using new features of dy2stat #25960 in 2.0-beta API.

  1. Make it Unnecessary to run model before calling _save_inference_model for users in dygraph.
  2. Save correct shape of input, now the interface stores the shape that the user sent to
    the inputs of the model in running.
  3. Make it Unnecessary to add @paddle.jit.to_static for users in dynamic mode.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

guoshengCS
guoshengCS previously approved these changes Sep 16, 2020
Copy link

@saxon-zh saxon-zh left a comment

Choose a reason for hiding this comment

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

LGTM

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