torch.nn.attention.current_flash_attention_impl
-
torch.nn.attention.current_flash_attention_impl()[исходный код] -
Возвращает имя текущей активированной реализации flash attention, если она есть.
Noneозначает, что пользовательская реализация не активирована.- Тип возвращаемого значения:
-
str | None
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.nn.attention.current_flash_attention_impl.html