Skip to content

Commit

Permalink
fix debug mask param check typo (apache#9586)
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongtest-intellif authored and dchauhan-arm committed Nov 29, 2021
1 parent 78f5194 commit cf97132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/tir/schedule/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf97132

Please sign in to comment.