09444e55b40fe2787176f45b46937bd149c3ed16,ludwig/models/modules/recurrent_modules.py,RecurrentStack,call,#RecurrentStack#Any#Any#Any#,120

Before Change


        for layer in self.layers:
            if self.cell_type == "lstm":
                hidden, final_memory_state, final_carry_state = \
                    layer(
                            hidden,
                            initial_state=initial_state,
                            training=training
                          )
                initial_state = [final_memory_state, final_carry_state]
            else:
                hidden, initial_state = layer(
                    hidden,

After Change


        for layer in self.layers:
            outputs = layer(hidden, training=training)
            hidden = outputs[0]
        return hidden, outputs[1:]

def get_cell_fun(cell_type):
    if cell_type == "rnn":
        cell_fn = tf.nn.rnn_cell.BasicRNNCell  // todo tf2: do we eventually need tf2.keras.layers.SimpleRNNCell
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: uber/ludwig
Commit Name: 09444e55b40fe2787176f45b46937bd149c3ed16
Time: 2020-05-04
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/recurrent_modules.py
Class Name: RecurrentStack
Method Name: call


Project Name: keras-team/keras
Commit Name: 1d2ad790dd43a2d702176c1170b2f3fd592a385a
Time: 2018-01-30
Author: myutwo150@users.noreply.github.com
File Name: tests/keras/layers/wrappers_test.py
Class Name:
Method Name: test_Bidirectional_state_reuse


Project Name: keras-team/keras
Commit Name: f57128bd3d347194d77bfe43ff6a794054679d69
Time: 2016-04-01
Author: francois.chollet@gmail.com
File Name: keras/layers/wrappers.py
Class Name: TimeDistributed
Method Name: call