-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Have ReParameter only copy data when it changes (#1698)
For GPU in particular, this prevents needless transfers to the device when no values actually change. Also, keep track of some statistics about how much ReParameter is being used. (Which also help to verify that this change works as intended.) Signed-off-by: Larry Gritz <lg@larrygritz.com>
- Loading branch information
Showing
2 changed files
with
36 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
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