flops-counter.pytorch icon indicating copy to clipboard operation
flops-counter.pytorch copied to clipboard

Does it support torch.bmm() or torch.matmul()

Open kamiLight opened this issue 4 years ago • 1 comments

One part of my model performs the matrix multiplication, i.e torch.bmm() / torch.matmul(), but results show the GMac of this part is 0.0, i want to know if this is because the GMac is too small or it is not support torch.bmm() or torch.matmul()?

kamiLight avatar Sep 20 '21 15:09 kamiLight

ptflops can take into account only ops that are derived from nn.Module. Support of torch.bmm and similar operations requires complete redesign of the flops counting mechanism. I've started thinking of that but barely will do this soon.

sovrasov avatar Sep 21 '21 10:09 sovrasov