33ff9dbce230068e65dedb2f41a00c39c70bef93,tests/keras/layers/test_wrappers.py,,test_Bidirectional,#,80

Before Change


def test_Bidirectional():
    for rnn in [recurrent.SimpleRNN, recurrent.LSTM]:
        for mode in ["sum", "concat"]:
            x = np.random.random((5, 3, 2))
            output_dim = 6 if mode == "concat" else 3
            y = np.random.random((5, output_dim))

After Change



        // test config
        model.get_config()
        model = model_from_json(model.to_json())
        model.summary()

        // test stacked bidirectional layers
        model = Sequential()
        model.add(wrappers.Bidirectional(rnn(1, return_sequences=True),
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 33ff9dbce230068e65dedb2f41a00c39c70bef93
Time: 2016-08-17
Author: francois.chollet@gmail.com
File Name: tests/keras/layers/test_wrappers.py
Class Name:
Method Name: test_Bidirectional


Project Name: tensorflow/models
Commit Name: f2ea2f537967af92fd47eeeb91b0e312aedaddad
Time: 2019-05-24
Author: tobyboyd@google.com
File Name: official/transformer/v2/transformer_main.py
Class Name: TransformerTask
Method Name: eval


Project Name: oarriaga/face_classification
Commit Name: 0a244169fc0537446ea5ad3d81bef8e28648858a
Time: 2017-07-05
Author: arriaga.camargo@gmail.com
File Name: src/models/cnn.py
Class Name:
Method Name: