Skip to content

Commit

Permalink
Remove useless "else"
Browse files Browse the repository at this point in the history
  • Loading branch information
rocking5566 committed Nov 5, 2024
1 parent 5467cea commit 86f9b1b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions csrc/flash_attn_ck/mha_bwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,6 @@ mha_bwd(const at::Tensor &dout, // batch_size x seqlen_q x num
hipLaunchKernelGGL(
flash::ParsePhiloxCudaState, dim3(1), dim3(64), 0, 0,
philox_args, reinterpret_cast<uint64_t*>(rng_state.data_ptr()));
} else {
rng_state = torch::empty({2}, opts.dtype(torch::kInt64));
}

if (seqlen_q > 0) {
Expand Down

0 comments on commit 86f9b1b

Please sign in to comment.