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))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: Epistimio/orion
Commit Name: 3860c9c27e43d880370c714944043d63cfa2097d
Time: 2021-04-06
Author: xavier.bouthillier@umontreal.ca
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__


Project Name: Epistimio/orion
Commit Name: 05cb9508a1281d02de8009fe1d333a26670fe966
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__