We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02fe9fb commit ece9d37Copy full SHA for ece9d37
mlir/python/mlir/dialects/scf.py
@@ -13,6 +13,7 @@
13
from ._ods_common import (
14
get_op_result_or_value as _get_op_result_or_value,
15
get_op_results_or_values as _get_op_results_or_values,
16
+ get_op_result_or_op_results as _get_op_result_or_op_results,
17
_cext as _ods_cext,
18
)
19
except ImportError as e:
@@ -325,5 +326,4 @@ def index_switch(
325
326
loc=loc,
327
ip=ip,
328
- results = op.results
329
- return results if len(results) > 1 else (results[0] if len(results) == 1 else op)
+ return _get_op_result_or_op_results(op)
0 commit comments