| Files | Last commit | Last update |
|---|---|---|
feat(exported_custom_op): Add the minimal onnx demo pair and its system tests Co-authored-by: Nikita Larichev<nikita.larichev@h-partners.com> # message auto-generated for no-merge-commit merge: !6778 merge v4_07_demos_minimal into master feat(exported_custom_op): Add the minimal onnx demo pair and its system tests Created-by: Nikita17 Commit-by: Nikita Larichev Merged-by: cann-robot Description: The minimal demo pair for the custom-op export flow, split out of https://gitcode.com/cann/pypto/merge_requests/5158 for reviewability. add is the smallest single-op export, and build_so_and_setup_demo.py turns an exported .onnx into a placeable libcust_opapi.so. Between them they exercise every module of the support library added in #6780, which is what makes this the smallest useful demo set rather than an arbitrary subset. The demos sit under examples/03_advanced/exported_custom_op/, beside the other advanced examples, and import the library as exported_custom_op from <repo root>/tools. Changes: - Add examples/03_advanced/exported_custom_op/onnx/add/ — the five-file demo (kernel.py, op.py, model.py, plus the export_demo.py and run_demo.py entry points) and onnx/build_so_and_setup_demo.py, which builds the operator .so from an exported model and places it where ATC and GE find it - Add the system tests under tests/st/: test_build_so_loads.py proves the built .so is really loadable, and test_demo_sweep.py drives every demo's export and build stages as subprocesses, discovering demos by glob so a demo added later is swept the moment it lands - Extend examples/validate_examples.py's skip set: build_so_and_setup_demo.py consumes the previous step's output and cannot be run bare, and a demo's kernel.py, op.py and model.py are imported by its two entry points rather than launched. The collected count is unchanged for every pre-existing example - Depends on #6780: the demos reach the export session, the discovery logic and the .so build through the exported_custom_op package that PR introduces Related Issues: [#2869](https://gitcode.com/cann/pypto/issues/2869), [#5158](https://gitcode.com/cann/pypto/merge_requests/5158), [#6780](https://gitcode.com/cann/pypto/merge_requests/6780) See merge request: cann/pypto!6778 | 1 month ago |