7a4f4148317f7274c0c88095c037e93f95b1d00d,python/baseline/pytorch/tagger/model.py,RNNTaggerModel,_init_embed,#RNNTaggerModel#Any#,32
Before Change
input_sz = 0
for k, embedding in embeddings.items():
DefaultType = PyTorchCharConvEmbeddings if k == "char" else PyTorchWordEmbeddings
self.embeddings[k] = pytorch_embeddings(embeddings[k], DefaultType)
input_sz += self.embeddings[k].get_dsz()
return input_sz
def _embed(self, input):
After Change
input_sz = 0
for k, embedding in embeddings.items():
self.embeddings[k] = embedding
input_sz += embedding.get_dsz()
return input_sz
def _embed(self, input):
all_embeddings = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: dpressel/mead-baseline
Commit Name: 7a4f4148317f7274c0c88095c037e93f95b1d00d
Time: 2018-09-25
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/tagger/model.py
Class Name: RNNTaggerModel
Method Name: _init_embed
Project Name: dpressel/mead-baseline
Commit Name: 7a4f4148317f7274c0c88095c037e93f95b1d00d
Time: 2018-09-25
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: ClassifierModelBase
Method Name: _init_embed
Project Name: dpressel/mead-baseline
Commit Name: fa163dba8c30d13195623e65de9b51a011d0f2b6
Time: 2020-01-13
Author: dpressel@gmail.com
File Name: python/eight_mile/pytorch/layers.py
Class Name: EmbeddingsStack
Method Name: __init__