1a433b9140cc4824ec50f13e3295a5cfcf046c27,onnx_tf/handlers/backend/gather.py,Gather,version_11,#Any#Any#,19

Before Change



  @classmethod
  def version_11(cls, node, **kwargs):
    x = kwargs["tensor_dict"][node.inputs[0]]
    indices = kwargs["tensor_dict"][node.inputs[1]]
    attrs = copy.deepcopy(node.attrs)
    axis = attrs.get("axis", 0)
    result = cls.chk_idx_out_of_bounds_along_axis(x, axis, indices)
    msg = "Gather indices are out of bounds, please double check the indices and retry."
    with tf.control_dependencies([tf.compat.v1.assert_equal(result, True, message=msg)]):
      indices = cls.process_neg_idx_along_axis(x, axis, indices)
      attrs["axis"] = axis
      return [cls.make_tensor_from_onnx_node(node, attrs=attrs, inputs=[x, indices], **kwargs)]

After Change



  @classmethod
  def version_11(cls, node, **kwargs):
    return cls._common(node, **kwargs)

  @classmethod
  def version_13(cls, node, **kwargs):
    return cls._common(node, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: onnx/onnx-tensorflow
Commit Name: 1a433b9140cc4824ec50f13e3295a5cfcf046c27
Time: 2021-01-13
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/gather.py
Class Name: Gather
Method Name: version_11


Project Name: onnx/onnx-tensorflow
Commit Name: 1a433b9140cc4824ec50f13e3295a5cfcf046c27
Time: 2021-01-13
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/gather.py
Class Name: Gather
Method Name: version_11


Project Name: onnx/onnx-tensorflow
Commit Name: cb4872291e117abc28776492cbe0208aeefd2245
Time: 2019-06-07
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/thresholded_relu.py
Class Name: ThresholdedRelu
Method Name: version_1


Project Name: onnx/onnx-tensorflow
Commit Name: 81765783b9eaa051b47f628fe302419afb97f46d
Time: 2021-01-14
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/scatter_nd.py
Class Name: ScatterND
Method Name: version_11