37fd456a5cd44db6ca23975de6fe151c9713c58f,keras/layers/core.py,Lambda,output_shape,#Lambda#,1526

Before Change


                return K.int_shape(x)
            // otherwise, we default to the input shape
            return self.input_shape
        elif type(self._output_shape) == tuple:
            nb_samples = self.input_shape[0] if self.input_shape else None
            return (nb_samples, ) + self._output_shape
        else:
            output_shape_func = marshal.loads(self._output_shape)
            output_shape_func = types.FunctionType(output_shape_func, globals())
            shape = output_shape_func(self.input_shape)
            if type(shape) not in {list, tuple}:
                raise Exception("output_shape function must return a tuple")

After Change


                return K.int_shape(x)
            // otherwise, we default to the input shape
            return self.input_shape
        elif type(self._output_shape) in {tuple, list}:
            nb_samples = self.input_shape[0] if self.input_shape else None
            return (nb_samples,) + tuple(self._output_shape)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: 37fd456a5cd44db6ca23975de6fe151c9713c58f
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Lambda
Method Name: output_shape


Project Name: keras-team/keras
Commit Name: 37fd456a5cd44db6ca23975de6fe151c9713c58f
Time: 2016-03-11
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: LambdaMerge
Method Name: output_shape


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: a5660329907136fbacc4729a6f9cafed871f06b3
Time: 2018-03-31
Author: akshayubhat@gmail.com
File Name: server/init_fs.py
Class Name:
Method Name: