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


    super(DepthwiseConv2D, self).__init__(custom_getter=custom_getter,
                                          name=name)

    if (not isinstance(channel_multiplier, numbers.Integral) or
        channel_multiplier < 1):
      raise ValueError("channel_multiplier (=%d), must be integer >= 1" %
                       channel_multiplier)
    self._channel_multiplier = channel_multiplier

    self._kernel_shape = _fill_and_verify_parameter_shape(kernel_shape, 2,
                                                          "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)

    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(
        initializers, self.possible_keys)
    self._partitioners = util.check_partitioners(
        partitioners, self.possible_keys)
    self._regularizers = util.check_regularizers(
        regularizers, self.possible_keys)
    self._input_shape = None  // Determined in build() from the input.
    self._input_channels = None  // Determined in build() from the input.
    self._output_channels = None  // Ditto, determined from the input and kernel.

  @classmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

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: biolab/orange3
Commit Name: b39db6e2bf0c806554578b5c9895d9b7ef6bd48c
Time: 2017-09-09
Author: pavlin.g.p@gmail.com
File Name: Orange/statistics/util.py
Class Name:
Method Name: countnans


Project Name: Qiskit/qiskit-aqua
Commit Name: 2aae12b10a3411009a2802a077bb8c6c0365b6ad
Time: 2020-08-28
Author: 31178928+t-imamichi@users.noreply.github.com
File Name: qiskit/aqua/operators/converters/abelian_grouper.py
Class Name: AbelianGrouper
Method Name: group_subops


Project Name: theislab/scanpy
Commit Name: c241a91f4e99a8a8e158ef89fe609d6932688911
Time: 2019-06-03
Author: flying-sheep@web.de
File Name: scanpy/_settings.py
Class Name:
Method Name: _type_check