fix: return the out tensor rather then the functions return value

This commit is contained in:
drbh 2024-08-05 19:06:55 +00:00
parent dd47a3dac4
commit 516b43f006

View File

@ -292,8 +292,7 @@ else:
)
out = torch.empty_like(q)
return flash_attn_cuda.fwd(
flash_attn_cuda.fwd(
q,
k,
v,
@ -309,4 +308,5 @@ else:
False,
0,
None,
)[0]
)
return out