2b976af3813c166bb96190c28cf28f214bd0df97,tensorflow2/tf2cv/models/common.py,AvgPool2d,call,#AvgPool2d#Any#,344
Before Change
def call(self, x):
if self.ceil_mode:
padding = self.padding
height = int(x.shape[2])
out_height = float(height + 2 * padding[0] - self.pool_size[0]) / self.strides[0] + 1.0
if math.ceil(out_height) > math.floor(out_height):
padding = (padding[0] + 1, padding[1])
width = int(x.shape[3])
After Change
def call(self, x):
if self.ceil_mode:
x_shape = x.get_shape().as_list()
if is_channels_first(self.data_format):
height = x_shape[2]
width = x_shape[3]
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: osmr/imgclsmob
Commit Name: 2b976af3813c166bb96190c28cf28f214bd0df97
Time: 2019-12-25
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/common.py
Class Name: AvgPool2d
Method Name: call
Project Name: osmr/imgclsmob
Commit Name: 42588e0b073d51124b87b66d04aa41373d462952
Time: 2019-02-10
Author: osemery@gmail.com
File Name: keras_/kerascv/models/common.py
Class Name:
Method Name: channel_shuffle
Project Name: osmr/imgclsmob
Commit Name: 2b976af3813c166bb96190c28cf28f214bd0df97
Time: 2019-12-25
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/common.py
Class Name: MaxPool2d
Method Name: call