c74883931cb40748eaaccce9fd1117303c41a881,onnx_tf/handlers/backend/cumsum.py,CumSum,args_check,#Any#Any#,19
Before Change
class CumSum(BackendHandler):
@classmethod
def args_check(cls, node, **kwargs):
supported_dtype = [
tf.bfloat16, tf.half, tf.float32, tf.float64, tf.uint8, tf.uint16,
tf.int8, tf.int16, tf.int32, tf.int64, tf.complex64, tf.complex128
]
x = kwargs["tensor_dict"][node.inputs[0]]
if x.dtype not in supported_dtype:
exception.OP_UNSUPPORTED_EXCEPT(
"CumSum input in " + str(x.dtype) + " which", "Tensorflow")
@classmethod
def version_11(cls, node, **kwargs):
tensor_dict = kwargs["tensor_dict"]
x = tensor_dict[node.inputs[0]]
After Change
// throw an error if the data type is not natively supported by
// Tensorflow, cannot be safely cast, and auto-cast option is False
if x.dtype in cls.cast_map and cls.cast_map[x.dtype] is None:
exception.DTYPE_NOT_CAST_EXCEPT(
"CumSum input " + node.inputs[0] + " with data type "" +
data_type.tf_to_np_str(x.dtype) + """,
data_type.tf_to_np_str_list(cls.supported_types))
@classmethod
def version_11(cls, node, **kwargs):
x = kwargs["tensor_dict"][node.inputs[0]]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 25
Instances
Project Name: onnx/onnx-tensorflow
Commit Name: c74883931cb40748eaaccce9fd1117303c41a881
Time: 2020-08-26
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/cumsum.py
Class Name: CumSum
Method Name: args_check
Project Name: onnx/onnx-tensorflow
Commit Name: c74883931cb40748eaaccce9fd1117303c41a881
Time: 2020-08-26
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/cumsum.py
Class Name: CumSum
Method Name: args_check
Project Name: onnx/onnx-tensorflow
Commit Name: c74883931cb40748eaaccce9fd1117303c41a881
Time: 2020-08-26
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/equal.py
Class Name: Equal
Method Name: args_check
Project Name: onnx/onnx-tensorflow
Commit Name: 9c62f4f3d7c6b98f311ef82863281b088ce4d48a
Time: 2020-10-02
Author: chhuang@us.ibm.com
File Name: onnx_tf/handlers/backend/mod.py
Class Name: Mod
Method Name: args_check