torch.utils.flop_counter.sdpa_flop
-
torch.utils.flop_counter.sdpa_flop(query_shape, key_shape, value_shape, *args, out_shape=None, **kwargs)[исходный код] -
Подсчитывает количество операций с плавающей точкой для самовнимания.
- Тип возвращаемого значения:
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.utils.flop_counter.sdpa_flop.html