[Bugfix] Fix uint32 overflow in Mamba selective scan state pointer arithmetic (#35275)
Signed-off-by: Josephasafg <ajgard7@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
struct SSMParamsBase {
|
struct SSMParamsBase {
|
||||||
using index_t = uint32_t;
|
using index_t = size_t;
|
||||||
|
|
||||||
int batch, dim, seqlen, dstate, n_groups, n_chunks;
|
int batch, dim, seqlen, dstate, n_groups, n_chunks;
|
||||||
int dim_ngroups_ratio;
|
int dim_ngroups_ratio;
|
||||||
|
|||||||
Reference in New Issue
Block a user