Repository navigation
Add ApplyOnnxModel sample for custom input shapes - #7965
ZebrowskiM wants to merge 3 commits into
Conversation
|
I ran this on macOS arm64. The sample prints |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7965 +/- ##
==========================================
+ Coverage 70.89% 70.90% +0.01%
==========================================
Files 1421 1421
Lines 280133 280259 +126
Branches 27601 27608 +7
==========================================
+ Hits 198591 198731 +140
+ Misses 73407 73386 -21
- Partials 8135 8142 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
krwq
left a comment
There was a problem hiding this comment.
Sharing local copilot comments for review. I've quick validated them and they look correct
|
Thanks, all three are in (8a60ef8). I gave |
The
shapeDictionaryoverload ofApplyOnnxModelwas borrowing the plain overload's example, which never actually passes a shape, so there was no way to see the feature in use. This adds a small sample that fills in the unknown first dimension oftest_unknowndimensions_float.onnxand points that overload's docs at it. The model already ships in Microsoft.ML.Onnx.TestModels, so nothing needs to be downloaded.Fixes #5894