Skip to content
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

Fix bug of prune when the program desc has been modified and var.op info is not up-to-date #10147

Closed
kexinzhao opened this issue Apr 23, 2018 · 0 comments · Fixed by #10109
Closed
Assignees
Labels
预测 原名Inference,包含Capi预测问题等

Comments

@kexinzhao
Copy link
Contributor

var.op is usually set to the operator that generates this variable in the prune method in framework.py.

If we firstly prune the program desc to save the original model, and then use float16_transpiler to modify the program desc again. var.op in some cases will be out of date.

So we need to force the prune method to find the latest info about which operator generates the variable in inquiry so that we can find the correct operator as the prune target.

@kexinzhao kexinzhao added the 预测 原名Inference,包含Capi预测问题等 label Apr 23, 2018
@kexinzhao kexinzhao self-assigned this Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
预测 原名Inference,包含Capi预测问题等
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant