Add an option to skip loading of debug traces (#91430)
Summary:
Debug traces consumes lots of memory especially for small models.
Test Plan:
Unit test
Reviewers:
Subscribers:
Tasks:
Tags:
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/91430
Approved by: https://github.com/davidberard98