Paddle
Paddle copied to clipboard
save inference model剪枝时,错误的减掉rnn block里的op
如题,python inference 挂掉
这个问题的根本原因是,通过rnn的output回溯不到rnn block内,所以误剪了某些op.
建议提供不做网络剪枝的选项。
在该case中,注释掉这一句即可:https://github.com/PaddlePaddle/Paddle/blob/develop/python/paddle/fluid/io.py#L1083
Prune函数对sub block的情况有处理啊:https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/fluid/framework/prune.cc#L125
@wanghaoshuang 为什么还是误裁了呢?
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。