Skip to content

Commit

Permalink
Bug fix for intermediate support in Yaml (#40935)
Browse files Browse the repository at this point in the history
  • Loading branch information
jim19930609 committed Mar 28, 2022
1 parent b64f611 commit 3f4099e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ def GenerateForwardDefinition(self, is_inplaced):
for name, (rtype, pos) in forward_outputs_position_map.items():
if name in intermediate_outputs:
continue
if num_outputs == 1:
if num_outputs == 1 and len(intermediate_outputs) == 0:
returns_list[0] = f"api_result"
else:
# Tuple api_result
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/utils/code_gen/sparse_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
kernel :
func : sparse_conv3d
layout : x
# intermediate : rulebook
intermediate : rulebook
backward : conv3d_grad

- api : to_dense
Expand Down

0 comments on commit 3f4099e

Please sign in to comment.