This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #964 When the copy_unk flag is set to true. Any unk that is produced in the output of the Seq2Seq model is replaced by the token that was mapped to unk from the utterance. This is a easy way to get gains since outputs with unk are always wrong. Looking at the old code for copying the unk token we see that TorchScript optimizes out the actual search of the unk token in utterance: {F207887831} This diff updates the code to produce the correct TorchScript Graph {F207888470} Reviewed By: arbabu123 Differential Revision: D17213086 fbshipit-source-id: ebbfc52dcd703939316b15250110271336ef131d
- Loading branch information