6d8fd50a05261bd3978bbde4ed3831ef38a9b13d,onnx_tf/backend.py,TensorflowBackend,_conv,#Any#Any#Any#Any#,456

Before Change


      warnings.warn("Unsupported group attribute by Tensorflow in "
                    "Conv. This attribute will be ignored.",
                    UserWarning)
    if "pads" in node.attrs.keys():
      warnings.warn("Unsupported pads attribute by Tensorflow in "
                    "Conv operator. The SAME padding algorithm will be used.",
                    UserWarning)

After Change


    convolved = tf.nn.convolution(x, weights, tf_pads, strides=strides,
                              dilation_rate=dilations,
                              data_format=data_format)
    if len(node.inputs) == 2:
      return [convolved]
    else:
      bias = input_dict[node.inputs[2]]
      return [tf.nn.bias_add(convolved, bias, data_format="NCHW")]

  @classmethod
  def handle_conv(cls, node, input_dict):
    return cls._conv(node, input_dict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: onnx/onnx-tensorflow
Commit Name: 6d8fd50a05261bd3978bbde4ed3831ef38a9b13d
Time: 2017-10-31
Author: tjingrant@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: _conv


Project Name: allenai/allennlp
Commit Name: 7df8275e7f70013185f1afeaa2779c2abce4492d
Time: 2018-07-19
Author: matt-peters@users.noreply.github.com
File Name: allennlp/data/fields/text_field.py
Class Name: TextField
Method Name: get_padding_lengths


Project Name: descarteslabs/descarteslabs-python
Commit Name: b17e18b4224450aeb24e61d5545016dfe3f1b81a
Time: 2021-01-05
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/execution/arguments.py
Class Name:
Method Name: promote_arguments


Project Name: bokeh/bokeh
Commit Name: 22d187de30cb1f4df46abc9b0fe9268466ef262d
Time: 2015-09-15
Author: nroth@dealnews.com
File Name: bokeh/charts/_data_source.py
Class Name: ChartDataSource
Method Name: from_data


Project Name: merenlab/anvio
Commit Name: 9b06d79b5caf6f9ebd438abc4b5b4623e59195b7
Time: 2019-05-22
Author: a.murat.eren@gmail.com
File Name: anvio/completeness.py
Class Name: Completeness
Method Name: get_best_matching_domain