4c78e4d91abe9e6a37723bc2a4cff7a203f64013,python/baseline/tf/embeddings.py,PositionalLookupTableEmbeddings,create,#Any#Any#Any#,339
Before Change
vsz = model.vsz
dsz = model.dsz
weights = model.weights
finetune = kwargs.get("finetune", True)
scope = kwargs.get("scope", "{}/LUT".format(name))
unif = kwargs.get("unif", 0.1)
return cls(name, vsz, dsz, scope, finetune, weights, unif)
After Change
@classmethod
def create(cls, model, name, **kwargs):
return cls(name, vsz=model.vsz, dsz=model.dsz, weights=model.weights, **kwargs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: PositionalLookupTableEmbeddings
Method Name: create
Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: LookupTableEmbeddings
Method Name: create
Project Name: dpressel/mead-baseline
Commit Name: 029fdb5624fafee03a59f49d86b676f25851febf
Time: 2017-11-22
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/seq2seq/model.py
Class Name: Seq2SeqBase
Method Name: create
Project Name: dpressel/mead-baseline
Commit Name: 4c78e4d91abe9e6a37723bc2a4cff7a203f64013
Time: 2018-11-30
Author: dpressel@gmail.com
File Name: python/baseline/tf/embeddings.py
Class Name: PositionalLookupTableEmbeddings
Method Name: create