Skip to content

Commit

Permalink
formatted files
Browse files Browse the repository at this point in the history
  • Loading branch information
hazemessamm committed Oct 7, 2024
1 parent 738375f commit e12950c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions keras/src/ops/nn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2235,9 +2235,15 @@ def test_dot_product_attention(
mask_shape
)

if flash_attention and backend.backend() in ["torch", "tensorflow", "numpy"]:
self.skipTest("Not supported in TF and NumPy and supported for "
"PyTorch with specific requirements.")
if flash_attention and backend.backend() in [
"torch",
"tensorflow",
"numpy",
]:
self.skipTest(
"Not supported in TF and NumPy and supported for "
"PyTorch with specific requirements."
)

expected = _dot_product_attention(
query,
Expand Down

0 comments on commit e12950c

Please sign in to comment.