-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalizes predictions for batches > 1
* We remove the restriction of beam search to batches of size 1. If in the future beam search is generalized, prediction will "just work". * We remove the need to call the ugly pad_after_end helper function during prediction using much simpler logic in the mapper module. This function is still needed at present for compatible evaluation, but subsequent PRs will address that. * We remove a bunch of transpositions in `RnnModel` by keeping B as the leading dimension. This is good style anyways because B-first is assumed by just about all the library code.
- Loading branch information
1 parent
749a9ca
commit ffe6095
Showing
4 changed files
with
51 additions
and
52 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
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