Skip to content

Commit

Permalink
fix load bugs (#58159)
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanRisheng authored Oct 18, 2023
1 parent 6f48047 commit 2724c80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/paddle/jit/translated_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@ def _preprocess(self, program_desc):

@switch_to_static_graph
def _append_scale_to_output(self, program):
# 0. scale don't support bool output, we skip append scale for it
for out_desc in self._output_descs:
if out_desc.dtype() == core.VarDesc.VarType.BOOL:
return

# 1. append scale & save var
scale_output_vars = []
with framework.program_guard(program):
Expand Down

0 comments on commit 2724c80

Please sign in to comment.