From 2b4a0a31d55ea7e9725a27ebbe6e6cb3f48e35fa Mon Sep 17 00:00:00 2001 From: wrongtest Date: Thu, 25 Nov 2021 13:36:50 +0800 Subject: [PATCH] fix debug mask param check typo --- python/tvm/tir/schedule/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tvm/tir/schedule/state.py b/python/tvm/tir/schedule/state.py index a371897abd13..fbf21843e7b3 100644 --- a/python/tvm/tir/schedule/state.py +++ b/python/tvm/tir/schedule/state.py @@ -65,7 +65,7 @@ def _parse_debug_mask(debug_mask: Union[str, int]) -> int: debug_mask = 0 else: raise ValueError(f"Unrecognizable `debug_mask`: {debug_mask}") - if isinstance(debug_mask, bool) or not isinstance(debug_mask, int): + if not isinstance(debug_mask, bool) and not isinstance(debug_mask, int): raise TypeError(f"`debug_mask` should be integer or boolean, but gets: {debug_mask}") return debug_mask