-
Notifications
You must be signed in to change notification settings - Fork 498
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #20426: Layout assignment: Reset memory space in result layout
Imported from GitHub PR #20426 Layout assignment should not set any memory space on any of the instructions even if the entry computation layout has non-default memory space. At one place, the memory space was leaking (causing weight offloading crashes on real models), this patch addresses that. Drive-by: Introduce a helper function for the copy-pasted implementations of resetting the memory space in a layout. Copybara import of the project: -- 29bfdd8 by Jaroslav Sevcik <jsevcik@nvidia.com>: Reset memory space and result layout Merging this change closes #20426 COPYBARA_INTEGRATE_REVIEW=#20426 from jaro-sevcik:scrub-memory-space-in-layout-assignment 29bfdd8 PiperOrigin-RevId: 707185192
- Loading branch information
1 parent
432da09
commit be5b1af
Showing
2 changed files
with
82 additions
and
29 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
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