Fix a bug in calculating max_num_target in run_group_hstu_forward()

This commit is contained in:
Qianfeng Zhang
2026-06-28 15:04:28 +00:00
parent 6cf17bc827
commit f2d13923d6

View File

@@ -806,7 +806,7 @@ bool run_group_hstu_forward(const ck_tile::ArgParser& arg_parser, int num_group)
{
for(int i_batch = 0; i_batch < num_batch_per_group; i_batch++)
{
int i_global_batch = i_grp * num_batch_per_group * i_batch;
int i_global_batch = i_grp * num_batch_per_group + i_batch;
max_num_target = max(max_num_target, num_targets[i_global_batch]);
};