Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance of top_p and top_k calculations (#449)
This change is fixing the performance issue I have introduced in the PR #414 -- due to the usage of `torch.where` both functions have been called. Now we will run only the selected one.
- Loading branch information