4c7238680dad8e35dbe344d319e45cf6b3c7e43d,examples/wrap_pytorch_rnn.py,,,#,36

Before Change


        // Calculate dY and dX using get_dX callback

if __name__ == "__main__":
    plac.call(main)

After Change


            return autograd.Variable(weight.new(num_layers, batch_size, hidden_size).zero_())

if __name__ == "__main__":
    for rnn in ["RNN", "GRU", "LSTM"]:
        for bi in [False, True]:
            test_title = "Using {bidirectional}{rnn_type}".format(
                rnn_type=rnn, 
                bidirectional="Bi-" if bi else "")
            print(test_title)
            test_rnn(rnn_type=rnn, bidirectional=bi)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: explosion/thinc
Commit Name: 4c7238680dad8e35dbe344d319e45cf6b3c7e43d
Time: 2018-03-28
Author: daniel@recogn.ai
File Name: examples/wrap_pytorch_rnn.py
Class Name:
Method Name:


Project Name: explosion/thinc
Commit Name: 580fc161b180d6f0d80721524f7f4ce3d815a9ae
Time: 2018-03-28
Author: daniel@recogn.ai
File Name: examples/wrap_pytorch_rnn.py
Class Name:
Method Name:


Project Name: coala/coala-bears
Commit Name: 5585b77ebed137f69ea2b7e5425723e3b6a2ab75
Time: 2018-06-13
Author: jayvdb@gmail.com
File Name: setup.py
Class Name: BuildDocsCommand
Method Name: run