[pytorch][profiler] Fix division by 0 in computeFlops (#61676)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61676
Reviewed By: ilia-cher
Differential Revision: D29646067
fbshipit-source-id: d872221bbde5384a9e397e68c1e5b0664d913b42