Skip to content

Commit

Permalink
[Docs] Fix call to deprecated function (pytorch#135037)
Browse files Browse the repository at this point in the history
  • Loading branch information
drisspg authored and tolleybot committed Sep 14, 2024
1 parent 6b31f3f commit 5dd0e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/nn/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -5844,7 +5844,7 @@ def forward(self, ...):
>>> query = torch.rand(32, 8, 128, 64, dtype=torch.float16, device="cuda")
>>> key = torch.rand(32, 8, 128, 64, dtype=torch.float16, device="cuda")
>>> value = torch.rand(32, 8, 128, 64, dtype=torch.float16, device="cuda")
>>> with torch.backends.cuda.sdp_kernel(enable_math=False):
>>> with sdpa_kernel(backends=[SDPBackend.FLASH_ATTENTION]):
>>> F.scaled_dot_product_attention(query,key,value)
Expand Down

0 comments on commit 5dd0e87

Please sign in to comment.