Do not try to fold op.SplitToSequence when split is None#2550
Do not try to fold op.SplitToSequence when split is None#2550titaiwangms merged 1 commit intomicrosoft:mainfrom
None#2550Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2550 +/- ##
==========================================
+ Coverage 70.37% 70.49% +0.11%
==========================================
Files 218 218
Lines 26428 26430 +2
Branches 2646 2647 +1
==========================================
+ Hits 18600 18633 +33
+ Misses 6922 6889 -33
- Partials 906 908 +2 ☔ View full report in Codecov by Sentry. |
| """ | ||
| input = node.inputs[0] | ||
| if len(node.inputs) == 1: | ||
| # split is not provided |
There was a problem hiding this comment.
When split is not provided it is a scalar 1. Can we use this info?
There was a problem hiding this comment.
Is it? The issue @xadupre brought up was only one input. model id: facebook/sam-vit-base, so it hit indexerror.
There was a problem hiding this comment.
I think at least according to the spec: https://onnx.ai/onnx/operators/onnx__SplitToSequence.html#summary
There was a problem hiding this comment.
There was a problem hiding this comment.
Probably came from here
split is an optional input to op.SplitToSequence.