d2828713937b728cd41b31b459d11ec678d76177,keras/layers/convolutional_recurrent.py,ConvLSTM2D,reset_states,#ConvLSTM2D#,375

Before Change


        self.built = True

    def reset_states(self):
        assert self.stateful, "Layer must be stateful."
        input_shape = self.input_spec[0].shape
        output_shape = self.get_output_shape_for(input_shape)
        if not input_shape[0]:
            raise ValueError("If a RNN is stateful, a complete " +

After Change


        return initial_states

    def reset_states(self):
        if not self.stateful:
            raise RuntimeError("Layer must be stateful.")
        input_shape = self.input_spec[0].shape
        output_shape = self.get_output_shape_for(input_shape)
        if not input_shape[0]:
            raise ValueError("If a RNN is stateful, a complete " +
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: d2828713937b728cd41b31b459d11ec678d76177
Time: 2017-02-13
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvLSTM2D
Method Name: reset_states


Project Name: ray-project/ray
Commit Name: 7a78f4e95960bf8560b0547802f171e2b40e4f6b
Time: 2021-01-26
Author: zhisbug@users.noreply.github.com
File Name: python/ray/util/collective/collective.py
Class Name:
Method Name: declare_collective_group


Project Name: keras-team/keras
Commit Name: 03a7eb89e27b70f2ca0ac932ef4bace7569d6fab
Time: 2017-02-13
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: GRU
Method Name: reset_states