This code is to turn word embeddings into torch serialized tensors. I have to do this in order to train a model on OpenNMT. I was trying to run this code but I got an Attrib