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
Use 32-bit Philox consistently in randint4x even if offset is 64-bit (#6832)
Previously, passing a 64-bit offset to randint4x would cause Philox to
use 64-bit arithmetic internally and return 64-bit integer tensors. Not
only is this slow and register-hungry, but also it contradicts the
description of randint4x that it returns four 32-bit integer tensors. We
fix this to use 32-bit Philox even if the offset is 64-bit; the two
halves of the offset are used to populate two of the four words in the
128-bit counter.
0 commit comments