force a dynamo cache clean with gc.collect to fix OOMs (#1600)
Summary:
See comment :')
Tested locally, also launched a run here for timm_vision_transformer_large https://github.com/pytorch/benchmark/actions/runs/4833565000
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1600
Reviewed By: xuzhao9
Differential Revision: D45404044
Pulled By: janeyx99
fbshipit-source-id: 2372bb3d9700f3f9d907829c7ae6ee914dc2d033