Skip to content

Commit 076233c

Browse files
committed
lint
1 parent a38ddf4 commit 076233c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxscript/ir/passes/common/shape_inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def partial_infer_shapes(proto: onnx.ModelProto) -> onnx.ModelProto:
8181

8282
try:
8383
inferred_model_proto = _c_api_utils.call_onnx_api(partial_infer_shapes, model)
84-
except Exception as e:
84+
except Exception as e: # pylint: disable=broad-exception-caught
8585
logger.warning("Shape inference failed: %s. Model is left unchanged", exc_info=e)
8686
return ir.passes.PassResult(model, False)
8787

0 commit comments

Comments
 (0)