5d32a2bc0aa033a4a03a005699fd6268bbaa1a7f,src/garage/tf/models/lstm.py,,lstm,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,5

Before Change


            initializer=tf.concat(axis=1,
                                  values=[hidden_init_var_b, cell_init_var_b]),
        )
        hcs = tf.transpose(hcs, (1, 0, 2))
        hs = hcs[:, :, :hidden_dim]
        outputs = output_nonlinearity_layer(hs)

After Change


        cell_init_var_b = tf.broadcast_to(
            cell_init_var, shape=[tf.shape(all_input_var)[0], hidden_dim])

        rnn = tf.keras.layers.RNN(lstm_cell, return_sequences=True)

        hs = rnn(all_input_var,
                 initial_state=[hidden_init_var_b, cell_init_var_b])
        outputs = output_nonlinearity_layer(hs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rlworkgroup/garage
Commit Name: 5d32a2bc0aa033a4a03a005699fd6268bbaa1a7f
Time: 2020-04-29
Author: ahtsans@gmail.com
File Name: src/garage/tf/models/lstm.py
Class Name:
Method Name: lstm


Project Name: deepchem/deepchem
Commit Name: 2aa5cccc7c65d14305e60e0a61781aa11cb7142d
Time: 2019-03-28
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: LSTM
Method Name: create_tensor


Project Name: rlworkgroup/garage
Commit Name: 5d32a2bc0aa033a4a03a005699fd6268bbaa1a7f
Time: 2020-04-29
Author: ahtsans@gmail.com
File Name: src/garage/tf/models/gru.py
Class Name:
Method Name: gru