Rate this Page

torch.utils.flop_counter.sdpa_backward_flop#

torch.utils.flop_counter.sdpa_backward_flop(grad_out_shape, query_shape, key_shape, value_shape, *args, out_shape=None, **kwargs)[source]#

Count flops for self-attention backward.

Return type:

int