Skip to content

Commit

Permalink
polish _remove_no_value_return_var() function
Browse files Browse the repository at this point in the history
  • Loading branch information
0x45f committed Oct 28, 2021
1 parent ff3018d commit b72fd7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def convert_ifelse(pred, true_fn, false_fn, true_args, false_args, return_vars):


def _remove_no_value_return_var(out):
if out and isinstance(out, tuple):
if isinstance(out, tuple) and len(out) > 0:
processed_out = out
align_ret = out[0]
if isinstance(align_ret, tuple):
Expand Down

1 comment on commit b72fd7a

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.