未验证 提交 c716cf35 编写于 作者: 0 0x45f 提交者: GitHub

polish _remove_no_value_return_var() function (#36826) (#36830)

上级 d8ffb261
...@@ -214,7 +214,7 @@ def convert_ifelse(pred, true_fn, false_fn, true_args, false_args, return_vars): ...@@ -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): def _remove_no_value_return_var(out):
if out and isinstance(out, tuple): if isinstance(out, tuple) and len(out) > 0:
processed_out = out processed_out = out
align_ret = out[0] align_ret = out[0]
if isinstance(align_ret, tuple): if isinstance(align_ret, tuple):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册