Open renxida opened 4 months ago
I'm not sure if we want to support this, but if we do I think we need to insert a type conversion from vtensor<[1], si64> to vtensor<[?], si64>. Not sure how to materialize that.
KeypointRCNN_vaiq_int8 has if statements that returns not just different shapes but different ranks. We can't support that and will need something to be done with the model.
Stella mentions a way to deal with similar problems
https://discord.com/channels/973663919757492264/1173330951791706113/1246504997269798945
and @zjgarvey's comment in this morning's meeting got me to put 2 and 2 together. Will try to just remove the small branch of these onnx.If
I was working on #566
Found the problem in KeypointRCNN (gist with stripped IR at %5503 (the above link takes you to the correct line.
When lowering an
If
op with two branches returning different types, we encounter:Reproducer: