Skip to content

Commit

Permalink
Fix reduce bug according to #372
Browse files Browse the repository at this point in the history
  • Loading branch information
hjjq committed Dec 19, 2023
1 parent 340906c commit b7129bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/hidet/graph/ops/reduce/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def cuda_schedule_reduce_by_default(self, max_block_size=256, use_atomic=True) -
num_eles: int = 4 // xdtype.nbytes
if shape[-1] % num_eles == 0:
lanes = num_eles
vtype = VectorType(xdtype, lanes)
vtype = vectorize(xdtype, lanes)

read_shape = shape[:]
read_shape[-1] //= lanes
Expand Down

0 comments on commit b7129bd

Please sign in to comment.