019fa4d7f8216b9a906db49b64e02f9be08c3826,thinc/describe.py,Weights,__get__,#Weights#Any#Any#,36

Before Change


    def __get__(self, obj, type=None):
        key = (obj.id, self.name)
        if key in obj._mem:
            return obj._mem[key]
        else:
            shape = self.get_shape(obj)
            data = obj._mem.add(key, shape)
            if self.init is not None:

After Change


        obj._params[self.name] = ParamInfo(self.name, self.get_shape, self.init, self.text)

    def __get__(self, obj, type=None):
        return obj.get_param(self.name)

    def __set__(self, obj, value):
        return obj.set_param(self.name, value)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: explosion/thinc
Commit Name: 019fa4d7f8216b9a906db49b64e02f9be08c3826
Time: 2019-12-25
Author: honnibal+gh@gmail.com
File Name: thinc/describe.py
Class Name: Weights
Method Name: __get__


Project Name: explosion/thinc
Commit Name: 73844a5b82ca5a3dd9837a3fbed434b06af360bd
Time: 2020-01-18
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: forward


Project Name: explosion/thinc
Commit Name: f2754e0656d8cebe1f785f6af100e4ade241a7f8
Time: 2020-01-14
Author: honnibal+gh@gmail.com
File Name: thinc/model.py
Class Name: Model
Method Name: get_param