a73d3547b513b315d7ad804399d215a31b3381c0,sonnet/python/modules/conv.py,Conv3D,__init__,#Conv3D#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,2461

Before Change


      self._stride = _fill_and_verify_parameter_shape(stride, 3, "stride")
    self._rate = _fill_and_verify_parameter_shape(rate, 3, "rate")

    if any(x > 1 for x in self._stride) and any(x > 1 for x in self._rate):
      raise base.NotSupportedError(
          "Cannot have stride > 1 with rate > 1")

    self._padding = _verify_padding(padding)
    self._use_bias = use_bias
    self.possible_keys = self.get_possible_initializer_keys(use_bias=use_bias)
    self._initializers = util.check_initializers(

After Change


                                                          "kernel")
    // We want to support passing native strides akin to [1, m, n, 1]
    if isinstance(stride, collections.Iterable) and len(stride) == 4:
      if not stride[0] == stride[3] == 1:
        raise base.IncompatibleShapeError(
            "Invalid stride: First and last element must be 1.")
      self._stride = tuple(stride)
    else:
      self._stride = _fill_and_one_pad_stride(stride, 2)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepmind/sonnet
Commit Name: a73d3547b513b315d7ad804399d215a31b3381c0
Time: 2017-07-17
Author: tfgg@google.com
File Name: sonnet/python/modules/conv.py
Class Name: Conv3D
Method Name: __init__


Project Name: deepmind/sonnet
Commit Name: b920570810fcf591f2bbb744ea67fb76f447de90
Time: 2018-01-08
Author: noreply@google.com
File Name: sonnet/python/modules/batch_norm.py
Class Name: BatchNorm
Method Name: _build


Project Name: deepmind/sonnet
Commit Name: 4e6f863acd500dc02e7c2a8e5a01566ac58930d9
Time: 2018-11-20
Author: noreply@google.com
File Name: sonnet/python/modules/conv.py
Class Name: CausalConv1D
Method Name: __init__