Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions sdm/nn/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,7 @@ def _forward(
if self.post_attn_norm is not None:
attn_out = self.post_attn_norm(attn_out)

if (
out is not None
and torch.compiler.is_compiling()
and not out.is_contiguous()
):
if out is not None and torch.compiler.is_compiling():
tmp = (attn_out + query).to(out.dtype)
if self.mlp is not None:
tmp += self.mlp(tmp)
Expand Down
Loading