Skip to content

Commit 603f62c

Browse files
style
1 parent a1ff2f2 commit 603f62c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

optimum/exporters/onnx/model_patcher.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ def scaled_dot_product_attention(
357357
scale: Optional[torch._C.Value] = None,
358358
enable_gqa: bool = False,
359359
):
360-
assert (not is_causal) or (is_causal and symbolic_helper._is_none(attn_mask)), (
361-
"is_causal and attn_mask cannot be set at the same time"
362-
)
360+
assert (not is_causal) or (
361+
is_causal and symbolic_helper._is_none(attn_mask)
362+
), "is_causal and attn_mask cannot be set at the same time"
363363
assert not enable_gqa, "conversion of scaled_dot_product_attention not implemented if enable_gqa is True"
364364

365365
if symbolic_helper._is_none(scale):

0 commit comments

Comments
 (0)