Skip to content

Commit fb1fe18

Browse files
committed
[#18373] refactor the _normalize_python_tuple
1 parent 1fec187 commit fb1fe18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/tvm/relax/block_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ def _normalize_python_tuple(self, expr: Union[Expr, Sequence[Expr]]):
299299
"""
300300
if isinstance(expr, (list, tuple)):
301301
return Tuple([self._normalize_python_tuple(element) for element in expr])
302+
elif expr is None:
303+
from . import op
304+
return op.null_value()
302305
else:
303306
return expr
304307

0 commit comments

Comments
 (0)