81765783b9eaa051b47f628fe302419afb97f46d,onnx_tf/handlers/backend/scatter_nd.py,ScatterND,version_11,#Any#Any#,14

Before Change



  @classmethod
  def version_11(cls, node, **kwargs):
    data = kwargs["tensor_dict"][node.inputs[0]]
    indices = kwargs["tensor_dict"][node.inputs[1]]
    updates = kwargs["tensor_dict"][node.inputs[2]]

    result = cls.chk_idx_out_of_bounds(data, indices)
    msg = "ScatterND 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(data, indices)
      return [
          cls.make_tensor_from_onnx_node(node,
                                         inputs=[data, indices, updates],
                                         **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: 18

Instances


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


Project Name: onnx/onnx-tensorflow
Commit Name: adc869e88b109af683ac94251165f96f7a406bba
Time: 2019-10-04
Author: wtsang@us.ibm.com
File Name: onnx_tf/handlers/backend/onehot.py
Class Name: OneHot
Method Name: version_9


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


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