Skip to content

[Framework]Remove op_callstack attribute from model file #4042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2020

Conversation

DannyIsFunny
Copy link
Collaborator

@DannyIsFunny DannyIsFunny commented Aug 3, 2020

【Issue】 __model__ file of Paddle-Lite‘s consumes too much space.
image

model v45:
Anakin __model__ part : 20K
Paddle-Lite __model__: 200K

【Effect of Current PR】
Abandon op_callstack attribute from __model__, as this attribute contains too much debug info which has no effect on inference process.
【Experiment】

v45.nb:
     Before: 899K 
     After: 641k
Size of __model__ module will be reduced by 1/3

@DannyIsFunny DannyIsFunny changed the title [Framework]Remove [Framework]Remove op_callstack from model file Aug 3, 2020
@DannyIsFunny DannyIsFunny changed the title [Framework]Remove op_callstack from model file [Framework]Remove op_callstack attribute from model file Aug 4, 2020
@DannyIsFunny DannyIsFunny merged commit 473db81 into PaddlePaddle:develop Aug 4, 2020
@DannyIsFunny DannyIsFunny deleted the upadte_cpp branch August 4, 2020 06:16
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.

2 participants