Missing output shape when using infer_shapes_path on a model with external data? #5876
Unanswered
daveliddell
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I'm having trouble converting code that previously used
infer_shapes
to useinfer_shapes_path
instead because the model I'm working with is too large forinfer_shapes
. However, on a small test model, it seems that now the output shape isn't getting set. I'm using onnx 1.15 with python 3.10 on ubuntu 22 or 20 (doesn't seem to matter).Here's the model (with data externalized):
Here's the code to load it and infer shapes:
Here's a dump of the output of the resulting model:
Some experiments I've tried:
Here's how we were using infer_shapes before:
Before I start debugging, I was hoping someone might at least point me in the right direction. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions