Remove flops warnings from the default profiler use case (#49896)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/49896
Add missing check for with_flops option set
Test Plan:
python test/test_profiler.py
CI
Reviewed By: xuzhao9, ngimel
Differential Revision: D25716930
Pulled By: ilia-cher
fbshipit-source-id: 0da0bbb6c1a52328f665237e503406f877b41449