70a188776f7470c838dd22b1636462b75573a734,src/gluonnlp/layers.py,LearnedPositionalEmbedding,__init__,#LearnedPositionalEmbedding#Any#Any#Any#Any#Any#Any#Any#,503
Before Change
self._mode = mode
with self.name_scope():
self.weight = self.params.get("weight", shape=(max_length, units),
init=weight_initializer, dtype=dtype,
allow_deferred_init=True)
def __repr__(self):
s = "{name}(units={units}, max_length={max_length}, mode={mode}, dtype={dtype})"
return s.format(name=self.__class__.__name__,
After Change
init=embedding_initializer,
allow_deferred_init=True))
setattr(self, "inter_proj{}_weight".format(i),
Parameter("inter_proj{}_weight".format(i),
shape=(inner_embed_size, units),
init=weight_initializer,
allow_deferred_init=True))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: dmlc/gluon-nlp
Commit Name: 70a188776f7470c838dd22b1636462b75573a734
Time: 2020-07-16
Author: lausen@amazon.com
File Name: src/gluonnlp/layers.py
Class Name: LearnedPositionalEmbedding
Method Name: __init__
Project Name: ray-project/ray
Commit Name: 8cf598deab3158239e96ae193d1e42315ecb007e
Time: 2020-04-27
Author: nflu@users.noreply.github.com
File Name: python/ray/util/sgd/torch/distributed_torch_runner.py
Class Name: LocalDistributedRunner
Method Name: __init__
Project Name: ray-project/ray
Commit Name: 87557a00fa23ee7b3ecc7014de00e5c311e79758
Time: 2020-04-27
Author: rliaw@berkeley.edu
File Name: python/ray/tune/suggest/repeater.py
Class Name: Repeater
Method Name: add_configurations