onnx / optimizer

Actively maintained ONNX Optimizer
Apache License 2.0
650 stars 90 forks source link

rewrite input datatype from int64 to int32 #130

Closed HSQ79815 closed 1 year ago

HSQ79815 commented 1 year ago

TensorRT only supports INT32 as input data type. When input data type is INT64, the transform from onnx is unsupported, this pass changes input data type to INT32 and inserts a Cast node afer input node so that the transfom can run sucessfully.