91efaaa1d7486df71be30a54d82b907443d80bf1,keras/layers/convolutional.py,_Conv,compute_output_shape,#_Conv#Any#,191
Before Change
return outputs
def compute_output_shape(self, input_shape):
if self.data_format == "channels_last":
space = input_shape[1:-1]
new_space = []
for i in range(len(space)):
new_dim = conv_utils.conv_output_length(
space[i],
self.kernel_size[i],
padding=self.padding,
stride=self.strides[i],
dilation=self.dilation_rate[i])
new_space.append(new_dim)
return (input_shape[0],) + tuple(new_space) + (self.filters,)
if self.data_format == "channels_first":
space = input_shape[2:]
new_space = []
for i in range(len(space)):
new_dim = conv_utils.conv_output_length(
space[i],
self.kernel_size[i],
padding=self.padding,
stride=self.strides[i],
dilation=self.dilation_rate[i])
new_space.append(new_dim)
return (input_shape[0], self.filters) + tuple(new_space)
def get_config(self):
config = {
After Change
def compute_output_shape(self, input_shape):
if self.data_format == "channels_last":
space = input_shape[1:-1]
elif self .data_format == "channels_first":
space = input_shape[2:]
new_space = []
for i in range(len(space)):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: keras-team/keras
Commit Name: 91efaaa1d7486df71be30a54d82b907443d80bf1
Time: 2019-04-02
Author: bonlimezak@gmail.com
File Name: keras/layers/convolutional.py
Class Name: _Conv
Method Name: compute_output_shape
Project Name: keras-team/keras
Commit Name: 91efaaa1d7486df71be30a54d82b907443d80bf1
Time: 2019-04-02
Author: bonlimezak@gmail.com
File Name: keras/layers/convolutional.py
Class Name: _Conv
Method Name: compute_output_shape
Project Name: OpenNMT/OpenNMT-py
Commit Name: 5535a99a427dcb32f612adfcc008536937751ee0
Time: 2017-08-30
Author: s.gehrmann@outlook.com
File Name: onmt/IO.py
Class Name: ONMTDataset
Method Name: __init__
Project Name: ClimbsRocks/auto_ml
Commit Name: 343a835a26b6fbf1b7bd62965b74ed2d688319a5
Time: 2016-12-08
Author: ClimbsBytes@gmail.com
File Name: auto_ml/utils_ensemble.py
Class Name: Ensemble
Method Name: get_summary_stats