-
Notifications
You must be signed in to change notification settings - Fork 99
Skip full model shape inference if model > 2GB | feat(optimizer) #1340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1340 +/- ##
==========================================
- Coverage 64.82% 64.81% -0.01%
==========================================
Files 140 140
Lines 19972 19974 +2
Branches 3348 3349 +1
==========================================
Hits 12947 12947
- Misses 6482 6483 +1
- Partials 543 544 +1 ☔ View full report in Codecov by Sentry. |
| model = onnx.shape_inference.infer_shapes( | ||
| model, check_type=True, strict_mode=True, data_prop=True | ||
| ) | ||
| if model.ByteSize() < 1024 * 1024 * 1024 * 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make this a constant?
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #1334 * #1340 * __->__ #1346 Squashed of the following steps: - #1328 - #1329 - #1330 - #1331 - #1332 - #1333 - #1343 - #1345 Co-authored-by: Shubham Bhokare <[email protected]> Co-authored-by: Justin Chu <[email protected]> Co-authored-by: Xavier Dupré <[email protected]> Co-authored-by: "G. Ramalingam" <[email protected]> Co-authored-by: kunal-vaishnavi <[email protected]> Co-authored-by: Ti-Tai Wang <[email protected]>
263af0b to
e1339f0
Compare
Stack from ghstack (oldest at bottom):