Calculating flops of a given pytorch model

If someone still needs this, we wrote a small script to do that:

Example of usage:

3 Likes