torch.nn.attention.restore_flash_attention_impl
-
torch.nn.attention.restore_flash_attention_impl(_raise_warn=True)[исходный код] -
Восстанавливает реализацию FA2 по умолчанию
© 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.restore_flash_attention_impl.html