Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 31, 2024
1 parent 7adf804 commit 8baaa74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions monai/torch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
@@ -150,6 +150,7 @@
), "is_causal and attn_mask cannot be set at the same time"
assert not enable_gqa, "conversion of scaled_dot_product_attention not implemented if enable_gqa is True"

+ scale = symbolic_helper._maybe_get_const(scale, "f")
if symbolic_helper._is_none(scale):
scale = _attention_scale(g, query)

0 comments on commit 8baaa74

Please sign in to comment.