Skip to content

Commit f76ce64

Browse files
committed
Revert change, allow tuples input as List arguments
1 parent 8193fac commit f76ce64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/tir/schedule/_type_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def _type_check_atomic(v: Any, name: str, type_: Any) -> Optional[str]:
169169
return None if isinstance(v, type_) else _type_check_err(v, name, type_)
170170

171171
def _type_check_list(v: List[Any], name: str, type_: Any) -> Optional[str]:
172-
if not isinstance(v, list):
172+
if not isinstance(v, (list, tuple)):
173173
return _type_check_err(v, name, list)
174174
for i, x in enumerate(v):
175175
error_msg = _type_check(x, f"{name}[{i}]", type_)

0 commit comments

Comments
 (0)