-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
call empty_cache for dynamo tests (#126377)
Summary: When running a batch of models, lacking `empty_cache()` would result in OOM for subsequent models. This PR unifies the `empty_cache` call for both CUDA and XPU. X-link: pytorch/pytorch#126377 Approved by: https://github.com/EikanWang, https://github.com/guangyey, https://github.com/desertfire Reviewed By: huydhn Differential Revision: D57518757 fbshipit-source-id: a42ae31e7fb81bb05217fd672a3427bd68478a50
- Loading branch information
1 parent
b80b9cf
commit fd05b86
Showing
1 changed file
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters