Open zhenzi0322 opened 5 months ago
可能版本有更新,加上full_graph=True这个参数试一下呢
In ppdet/engine/trainer.py find if prune_input: static_model = paddle.jit.to_static( self.model, input_spec=input_spec) change to if prune_input: static_model = paddle.jit.to_static( self.model, input_spec=input_spec, full_graph=True)
问题确认 Search before asking
Bug组件 Bug Component
No response
Bug描述 Describe the Bug
使用导出模型发生异常:
异常如下:
复现环境 Environment
拉取分支
release/2.7
代码。然后按下面的步骤进行即可复现异常。Bug描述确认 Bug description confirmation
是否愿意提交PR? Are you willing to submit a PR?