ppbrown commited on
Commit
ff3f4c5
·
verified ·
1 Parent(s): 8a7d64c

Upload T5/generate-dict-embeddingsT5.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. T5/generate-dict-embeddingsT5.py +1 -1
T5/generate-dict-embeddingsT5.py CHANGED
@@ -56,7 +56,7 @@ all_embeddings = []
56
 
57
  for word in tokendict:
58
  emb = embed_from_text(word)
59
- #emb=emb.unsqueeze(0) # stupid matrix magic to make torch.cat work
60
  all_embeddings.append(emb)
61
  count+=1
62
  if (count %100) ==0:
 
56
 
57
  for word in tokendict:
58
  emb = embed_from_text(word)
59
+ emb=emb.unsqueeze(0) # stupid matrix magic to make torch.cat work
60
  all_embeddings.append(emb)
61
  count+=1
62
  if (count %100) ==0: