This repository was archived by the owner on Nov 22, 2022. It is now read-only.
Commit 4be819b
Making seq2seq_model more torchscript-friendly (#1459)
Summary:
Pull Request resolved: #1459
seq2seq_model.py changes:
- removes dependence on _ when unpacking the tensor dicts
- explicit None checks on dict feats
Differential Revision: D23673319
fbshipit-source-id: dd0f8e164b7368a6eef7fcf02a1a15a3c078f33e1 parent 5b5b6eb commit 4be819b
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments