cog-imperial / OMLT

Represent trained machine learning models as Pyomo optimization formulations
Other
257 stars 56 forks source link

onnxruntime provider #122

Closed bammari closed 9 months ago

bammari commented 9 months ago

New version of ORT requires execution provider specification when creating InferenceSession. Added 'CPUExecutionProvider'

Legal Acknowledgement\ By contributing to this software project, I agree my contributions are submitted under the BSD license. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

codecov[bot] commented 9 months ago

Codecov Report

Patch coverage: 98.94% and project coverage change: +0.54% :tada:

Comparison is base (dcca13c) 95.40% compared to head (04da734) 95.95%. Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #122 +/- ## ========================================== + Coverage 95.40% 95.95% +0.54% ========================================== Files 26 29 +3 Lines 1371 1656 +285 Branches 192 254 +62 ========================================== + Hits 1308 1589 +281 - Misses 34 35 +1 - Partials 29 32 +3 ``` | [Files Changed](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial) | Coverage Δ | | |---|---|---| | [src/omlt/linear\_tree/lt\_definition.py](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial#diff-c3JjL29tbHQvbGluZWFyX3RyZWUvbHRfZGVmaW5pdGlvbi5weQ==) | `98.69% <98.69%> (ø)` | | | [src/omlt/linear\_tree/lt\_formulation.py](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial#diff-c3JjL29tbHQvbGluZWFyX3RyZWUvbHRfZm9ybXVsYXRpb24ucHk=) | `99.22% <99.22%> (ø)` | | | [src/omlt/dependencies.py](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial#diff-c3JjL29tbHQvZGVwZW5kZW5jaWVzLnB5) | `100.00% <100.00%> (ø)` | | | [src/omlt/linear\_tree/\_\_init\_\_.py](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial#diff-c3JjL29tbHQvbGluZWFyX3RyZWUvX19pbml0X18ucHk=) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/cog-imperial/OMLT/pull/122/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=cog-imperial)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.