[C] Replace onnxsim to onnxslim and rm setup.cfg#27
Conversation
fa4384a to
45862b5
Compare
7e70b23 to
cf58ffa
Compare
cf58ffa to
5539ade
Compare
There was a problem hiding this comment.
Pull Request Overview
This PR replaces the onnxsim library with onnxslim for ONNX model optimization and removes the deprecated setup.cfg file in favor of pyproject.toml configuration. The changes also improve CI workflows and update test backend detection logic.
- Replace dependency from
onnxsimtoonnxslimfor ONNX model simplification - Remove
setup.cfgand consolidate configuration inpyproject.toml - Add new backend detection functionality and improve test platform compatibility
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Updated dependency from onnxsim to onnxslim and improved package configuration |
setup.cfg |
Removed deprecated configuration file |
capybara/onnxengine/tools.py |
Replaced onnxsim.simplify() with onnxslim.slim() and added backend detection |
capybara/onnxengine/enum.py |
New file defining Backend enum for consistent backend handling |
capybara/onnxengine/engine.py |
Moved Backend enum to separate file and updated imports |
tests/onnxruntime/test_engine*.py |
Updated test conditions to use new backend detection instead of platform checks |
.github/workflows/*.yml |
Enhanced CI workflows with better platform support and updated actions |
docker/*.dockerfile |
Updated base images and added new dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
This pull request introduces significant improvements to the CI workflows, ONNX engine backend management, and dependency handling. The main changes include splitting and enhancing CI workflows for CPU and CUDA platforms, refactoring backend detection and selection logic for ONNX engines, updating dependencies and package metadata, and improving Dockerfile compatibility. These updates aim to increase platform flexibility, simplify backend usage, and ensure more robust package management. CI Workflow Enhancements:
ONNX Engine Backend Refactoring:
Dependency and Packaging Updates:
Dockerfile Improvements:
Test Suite Adjustments: |
No description provided.