Skip to content

Commit 228a314

Browse files
committed
2 parents f857eb0 + 3a0c814 commit 228a314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def main():
134134
emb[vocab.getIndex(word)] = glove_emb[glove_vocab.getIndex(word)]
135135
torch.save(emb, emb_file)
136136
# plug these into embedding matrix inside model
137-
model.emb.weight.copy_(emb)
137+
model.emb.weight.data.copy_(emb)
138138

139139
model.to(device), criterion.to(device)
140140
if args.optim == 'adam':

0 commit comments

Comments
 (0)