Skip to content

Commit 708a44b

Browse files
committed
Remove redundant check
Signed-off-by: Jay Gu <jagu@nvidia.com>
1 parent 3d80f09 commit 708a44b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cuda/tile/_ir/ops_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def check_rd_and_ftz(fn: str, rounding_mode: Optional[RoundingMode], flush_to_ze
171171
f'Rounding mode {rounding_mode.value} can only be used for float32 type, '
172172
f'but got {dtype}')
173173
if flush_to_zero:
174-
if flush_to_zero and not math_op_def.support_flush_to_zero:
174+
if not math_op_def.support_flush_to_zero:
175175
raise TileTypeError(f'Flush to zero is not supported for {fn}')
176176
if dtype != datatype.float32:
177177
raise TileTypeError(

0 commit comments

Comments
 (0)