Skip to content

Commit 435e14a

Browse files
committed
rebase
1 parent 733be98 commit 435e14a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

aten/src/ATen/native/mkldnn/xpu/Attention.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,9 @@ _scaled_dot_product_fused_attention_overrideable_xpu(
225225
batch_size, num_head_q, seq_len_q, head_dim_v};
226226
alloc_with_matching_layout(query, attention, attention_shape);
227227

228-
at::Tensor logsumexp;
229-
if (compute_logsumexp) {
230-
logsumexp = at::empty(
228+
auto opts = query.options();
229+
at::Tensor logsumexp = at::empty(
231230
{batch_size, num_head_q, seq_len_q}, opts.dtype(at::kFloat));
232-
}
233231

234232
at::native::onednn::gpu_float_sdpa(
235233
batch_size,

0 commit comments

Comments
 (0)