Skip to content

Commit

Permalink
adapt to the develop Paddle and fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
nemonameless committed Nov 7, 2023
1 parent 3edaaa0 commit d7785bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppdet/engine/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def _get_infer_cfg_and_input_spec(self,

if prune_input:
static_model = paddle.jit.to_static(
self.model, input_spec=input_spec)
self.model, input_spec=input_spec, full_graph=True)
# NOTE: dy2st do not pruned program, but jit.save will prune program
# input spec, prune input spec here and save with pruned input spec
pruned_input_spec = _prune_input_spec(
Expand Down

0 comments on commit d7785bc

Please sign in to comment.