You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update all implicit type casts to be explicit (#237)
* Update all implicit type casts to be explicit reusing dtype var where possible
* Remove redundant Int() casts around block_dim, block_idx, and thread_idx
* Wrap both values in a cast for a single dtype across an operation.
**Edge case handling**: Values exactly 1.0 would go to bin `NUM_BINS`, but you only have bins 0 to `NUM_BINS-1`. Use an `if` statement to clamp the maximum bin.
@@ -140,7 +140,7 @@ The last thread (not thread 0!) computes the total count:
0 commit comments