6d506202920745291cc89d1e31de62ddcc3e375a,thinc/layers/lstm.py,,LSTM,#,20

Before Change


    if bi:
        if nO is not None:
            nO //= 2
        model = with_padded(
            clone(
                bidirectional(recurrent(LSTM_step(nO=nO, nI=nI, dropout=dropout))),
                depth
            )
        )
    else:
        model = with_padded(clone(recurrent(LSTM_step(nO=nO, nI=nI, dropout=dropout)), depth))
    return cast(Model[Padded, Padded], model)


@registry.layers("PyTorchLSTM.v0")
def PyTorchLSTM(

After Change


    model = recurrent(LSTM_step(nO=nO, nI=nI, dropout=dropout))
    if bi:
        model = bidirectional(model)
    return clone(model, depth)


@registry.layers("PyTorchLSTM.v0")
def PyTorchLSTM(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: explosion/thinc
Commit Name: 6d506202920745291cc89d1e31de62ddcc3e375a
Time: 2020-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: LSTM


Project Name: explosion/thinc
Commit Name: 1889b4a71bc4c0fae2249e19854994620f82a75f
Time: 2020-01-12
Author: honnibal+gh@gmail.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: PyTorchBiLSTM


Project Name: explosion/thinc
Commit Name: a6d60deb6cca4b50ef29dcaf8931e5b476de8063
Time: 2020-12-04
Author: svlandeg@users.noreply.github.com
File Name: thinc/layers/lstm.py
Class Name:
Method Name: PyTorchLSTM