Sync changes from `pytorch/torchdynamo` (#87013)
This updates to:
https://github.com/pytorch/torchdynamo/commit/6380959be21851bfda99424392cc08fda29d073d
Generated with:
https://github.com/pytorch/torchdynamo/blob/main/copy_to_core.sh
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87013
Approved by: https://github.com/voznesenskym