Closed anuragarnab closed 3 years ago
Currently, the flop-counter only works for input shapes of [m,n] and [n,p], and its assertions will fail otherwise. However, torch.matmul() can handle [d1, d2 ..., d_k, m, n] and [d1, d2, ..., d_k, n, p] shaped inputs.
[m,n]
[n,p]
torch.matmul()
[d1, d2 ..., d_k, m, n]
[d1, d2, ..., d_k, n, p]
@ppwwyyxx merged this pull request in facebookresearch/fvcore@f24713bd479b3c6f1baa734e89301e3d345e2879.
Currently, the flop-counter only works for input shapes of
[m,n]
and[n,p]
, and its assertions will fail otherwise. However,torch.matmul()
can handle[d1, d2 ..., d_k, m, n]
and[d1, d2, ..., d_k, n, p]
shaped inputs.