-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Implementing gather_for_metrics with dedup for non tensor objec…
…ts (#1937) * [feat] implementing gather_for_metrics for objects * [lint] make style result * [docs] improve fn docs gather for metrics Co-authored-by: Zach Mueller <[email protected]> * [docs] update args description gather for metrics Co-authored-by: Zach Mueller <[email protected]> * [refactor] gather for metrics for non tensor obj Co-authored-by: Zach Mueller <[email protected]> * [fix] renaming tensor to data (was not defined and it is not just a tensor) * [fix] else state * [test] gather for metrics with non tensor objects * [lint] make style result * Update src/accelerate/accelerator.py Co-authored-by: Zach Mueller <[email protected]> * Update src/accelerate/accelerator.py Co-authored-by: Zach Mueller <[email protected]> * [test] removing useless assertion Co-authored-by: Zach Mueller <[email protected]> * [test] add running on main * [lint] style autoformat --------- Co-authored-by: Lorenzobattistela <[email protected]> Co-authored-by: Zach Mueller <[email protected]>
- Loading branch information
1 parent
d9b5ce6
commit 5d558f2
Showing
2 changed files
with
57 additions
and
11 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