d78606358441d2ece534d2a3c455a55bf6a58969,tests/fixtures/models/simple_cnn_model.py,SimpleCNNModel,_build,#SimpleCNNModel#Any#Any#,23
Before Change
current_size = obs_input.get_shape().as_list()[1]
for filter_dim, stride in zip(self.filter_dims, self.strides):
if self.padding == "SAME":
padded = int(filter_dim / 2) * 2
current_size = int(
(current_size - filter_dim + padded) / stride) + 1
else:
current_size = int((current_size - filter_dim) / stride) + 1
After Change
del name
height_size = obs_input.get_shape().as_list()[1]
width_size = obs_input.get_shape().as_list()[2]
for filter_iter, stride in zip(self.filters, self.strides):
if self.padding == "SAME":
height_size = int((height_size + stride - 1) / stride)
width_size = int((width_size + stride - 1) / stride)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: rlworkgroup/garage
Commit Name: d78606358441d2ece534d2a3c455a55bf6a58969
Time: 2020-06-09
Author: 31981600+yeukfu@users.noreply.github.com
File Name: tests/fixtures/models/simple_cnn_model.py
Class Name: SimpleCNNModel
Method Name: _build
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: 2b976af3813c166bb96190c28cf28f214bd0df97
Time: 2019-12-25
Author: osemery@gmail.com
File Name: tensorflow2/tf2cv/models/common.py
Class Name: MaxPool2d
Method Name: call