5b6243485acc20cc36f2db4f258512c332d691ec,keras/legacy/layers.py,Recurrent,__call__,#Recurrent#Any#Any#,495

Before Change


        if initial_state is None:
            return super(Recurrent, self).__call__(inputs, **kwargs)

        if not isinstance(initial_state, (list, tuple)):
            initial_state = [initial_state]

        is_keras_tensor = hasattr(initial_state[0], "_keras_history")
        for tensor in initial_state:
            if hasattr(tensor, "_keras_history") != is_keras_tensor:
                raise ValueError("The initial state of an RNN layer cannot be"

After Change


        if initial_state is None:
            return super(Recurrent, self).__call__(inputs, **kwargs)

        initial_state = to_list(initial_state, allow_tuple=True)

        is_keras_tensor = hasattr(initial_state[0], "_keras_history")
        for tensor in initial_state:
            if hasattr(tensor, "_keras_history") != is_keras_tensor:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: keras-team/keras
Commit Name: 5b6243485acc20cc36f2db4f258512c332d691ec
Time: 2018-09-14
Author: gabrieldemarmiesse@gmail.com
File Name: keras/legacy/layers.py
Class Name: Recurrent
Method Name: __call__


Project Name: keras-team/keras
Commit Name: 5b6243485acc20cc36f2db4f258512c332d691ec
Time: 2018-09-14
Author: gabrieldemarmiesse@gmail.com
File Name: keras/legacy/layers.py
Class Name: Recurrent
Method Name: reset_states


Project Name: keras-team/keras
Commit Name: 5b6243485acc20cc36f2db4f258512c332d691ec
Time: 2018-09-14
Author: gabrieldemarmiesse@gmail.com
File Name: keras/engine/training.py
Class Name: Model
Method Name: _standardize_user_data


Project Name: keras-team/keras
Commit Name: 5b6243485acc20cc36f2db4f258512c332d691ec
Time: 2018-09-14
Author: gabrieldemarmiesse@gmail.com
File Name: keras/legacy/layers.py
Class Name: Recurrent
Method Name: __call__


Project Name: keras-team/keras
Commit Name: 5b6243485acc20cc36f2db4f258512c332d691ec
Time: 2018-09-14
Author: gabrieldemarmiesse@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvRNN2D
Method Name: reset_states