onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

Update symbolic_shape_infer.py

Open sam-h-bean opened this issue 3 years ago • 2 comments
trafficstars

Description Return empty array instead of None. Since the results of these methods are fed into loops returning None causes a crash in these situations.

Motivation and Context Script for making a .onnx file ready for TensorRT was failing for quantized models. Maybe a fix for https://github.com/microsoft/onnxruntime/issues/12173

sam-h-bean avatar Jul 14 '22 05:07 sam-h-bean

@stevenlix can you provide some details about the failures you encountered when testing this PR?

jywu-msft avatar Jul 29 '22 04:07 jywu-msft

One of our internal models failed with the PR changes. The error message is, File "symbolic_shape_infer.py", line 32, in is_sequence assert cls_type in ["tensor_type", "sequence_type"] AssertionError

stevenlix avatar Aug 05 '22 20:08 stevenlix