869b558268f198de90822e4ea17182dc74b78213,sonnet/python/modules/conv.py,Conv2D,_build,#Conv2D#Any#,315
Before Change
if mask_shape != self._kernel_shape:
raise base.IncompatibleShapeError(
"Invalid mask shape: {}".format(mask_shape))
mask = np.reshape(self._mask, self._kernel_shape + (1, 1))
elif mask_rank == 4:
if mask_shape != tuple(weight_shape):
raise base.IncompatibleShapeError(
"Invalid mask shape: {}".format(mask_shape))
After Change
raise base.IncompatibleShapeError(
"Invalid mask shape: {}".format(tuple(mask_shape)))
mask = tf.expand_dims(tf.expand_dims(mask, -1), -1)
elif mask_shape != list(weight_shape):
raise base.IncompatibleShapeError(
"Invalid mask shape: {}".format(tuple(mask_shape)))
w *= mask
outputs = tf.nn.convolution(inputs, w, strides=self._stride,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: deepmind/sonnet
Commit Name: 869b558268f198de90822e4ea17182dc74b78213
Time: 2017-11-09
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv2D
Method Name: _build
Project Name: NifTK/NiftyNet
Commit Name: b68ca4d6b22f2efd73581b9843d5ac2aeffcb6f7
Time: 2018-09-13
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/windows_aggregator_base.py
Class Name: ImageWindowsAggregator
Method Name: crop_batch
Project Name: chainer/chainercv
Commit Name: 19c8ee690ccf74947b379862a5290c9b53f96de7
Time: 2017-03-15
Author: yuyuniitani@gmail.com
File Name: chainercv/transforms/image/chw_to_pil_image.py
Class Name:
Method Name: chw_to_pil_image