How to compute the Floating point operations (FLOPs) for a given model? #6812
-
Hi, I want to ask once we build a model from PyTorch Geometric, how to measure the Floating point operations (FLOPs)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never did this before, so my advice may not be very useful. It looks like there exists some external tools that try to estimate FLOPs, e.g., https://github.com/1adrianb/pytorch-estimate-flops. Otherwise, PyTorch provides a set of benchmark utilities (but I am not sure if they support FLOP by now). |
Beta Was this translation helpful? Give feedback.
Never did this before, so my advice may not be very useful. It looks like there exists some external tools that try to estimate FLOPs, e.g., https://github.com/1adrianb/pytorch-estimate-flops. Otherwise, PyTorch provides a set of benchmark utilities (but I am not sure if they support FLOP by now).