Closed MagiaSN closed 3 years ago
The original line 81 may cause illegal memory access because threadIdx.x may be larger than to_seq_len. This PR fixes it by checking threadIdx.x for both qk_buf_, attr_mask and tmp.
threadIdx.x
to_seq_len
qk_buf_
attr_mask
tmp
All committers have signed the CLA.
The original line 81 may cause illegal memory access because
threadIdx.x
may be larger thanto_seq_len
. This PR fixes it by checkingthreadIdx.x
for bothqk_buf_
,attr_mask
andtmp
.