fb29be006d0351024c62ccbb9a8dba28dc2a9c3a,thinc/extra/wrappers.py,PyTorchWrapper,use_params,#PyTorchWrapper#Any#,88

Before Change


        else:
            backup = None
        yield
        self.from_bytes(backup)


class PyTorchWrapperRNN(PyTorchWrapper):
    """Wrap a PyTorch RNN model

After Change


        else:
            backup = None
        yield
        if backup is not None:
            self.from_bytes(backup)


class PyTorchWrapperRNN(PyTorchWrapper):
    """Wrap a PyTorch RNN model
    """
    def __call__(self, x_data, h_0=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: explosion/thinc
Commit Name: fb29be006d0351024c62ccbb9a8dba28dc2a9c3a
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params


Project Name: explosion/thinc
Commit Name: fb29be006d0351024c62ccbb9a8dba28dc2a9c3a
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapperRNN
Method Name: use_params


Project Name: explosion/thinc
Commit Name: 6bd0e965f75bc0c1a17176e0fcdbd9555ff9a7e6
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params


Project Name: explosion/thinc
Commit Name: 6bd0e965f75bc0c1a17176e0fcdbd9555ff9a7e6
Time: 2018-05-19
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapperRNN
Method Name: use_params