From 86f9b1b3f0644b9452d40acd10dc340679b2af9a Mon Sep 17 00:00:00 2001 From: rocking Date: Tue, 5 Nov 2024 16:21:16 +0000 Subject: [PATCH] Remove useless "else" --- csrc/flash_attn_ck/mha_bwd.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/csrc/flash_attn_ck/mha_bwd.cpp b/csrc/flash_attn_ck/mha_bwd.cpp index b6ad44dd1..e4a4b2a6b 100644 --- a/csrc/flash_attn_ck/mha_bwd.cpp +++ b/csrc/flash_attn_ck/mha_bwd.cpp @@ -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(rng_state.data_ptr())); - } else { - rng_state = torch::empty({2}, opts.dtype(torch::kInt64)); } if (seqlen_q > 0) {