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

Before Change


      self._stride = tuple(stride)[1:-1]
    else:
      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")

After Change


    // 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: chainer/chainercv
Commit Name: 5e01619e1f495db4ce7201c1444a66fbf46059c4
Time: 2019-02-23
Author: ktns.87@gmail.com
File Name: chainercv/links/model/pickable_sequential_chain.py
Class Name: PickableSequentialChain
Method Name: pick


Project Name: deepmipt/DeepPavlov
Commit Name: 3b3f8bd00c463e441600673141ff2de608880c9a
Time: 2018-02-05
Author: yoptar@gmail.com
File Name: deeppavlov/datasets/dialog_dataset.py
Class Name: DialogDataset
Method Name: batch_generator