37fd456a5cd44db6ca23975de6fe151c9713c58f,keras/layers/core.py,Lambda,output_shape,#Lambda#,1526
Before Change
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")
return tuple(shape)
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:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: bokeh/bokeh
Commit Name: 5ca53bb34ef70d9b05f9195d3090f320d7d2a73c
Time: 2017-07-19
Author: mattpap@gmail.com
File Name: bokeh/util/compiler.py
Class Name:
Method Name: bundle_models