This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added batched versions of scatter and fill to util.py (#4598)
* added batched_index_fill * added batched_index_scatter * added batched_index_scatter.. * added batched_index_scatter.. * fixed util. typo * fixed test * ran linter * ran linter (again....) * renamed methods and other small changes * removed target.clone() and changed from scatter_ to scatter * Update allennlp/nn/util.py Co-authored-by: Dirk Groeneveld <groeneveld@gmail.com> * ran black Co-authored-by: Your Name <you@example.com> Co-authored-by: Dirk Groeneveld <groeneveld@gmail.com>
- Loading branch information
1 parent
2c54cf8
commit dbc3c3f
Showing
2 changed files
with
122 additions
and
0 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