| feat: add skills of ops performance profile Co-authored-by: shiyuan680<yangcheng104@huawei.com> # message auto-generated for no-merge-commit merge: !51 merge skills into master feat: add skills of ops performance profile Created-by: zhizaidicengshehua Commit-by: shiyuan680 Merged-by: ascend-robot Description: ## What this PR does / why we need it? support skill which can profile ops performance two mode: random input file input ## Does this PR introduce any user-facing change? Please describe whether the PR will result in any user-facing usage changes. If there is related documentation, please specify its path. ## How was this patch tested? add example random mode python3 operator_performance_profile.py --api "from mindspeed_ops.api.triton.add import add" --input [10,10] x float32 --input [10,10] y float32 --iterations 10 --input-mode random file mode python3 operator_performance_profile.py --api "from mindspeed_ops.api.triton.add import add" --input ../x.pth --input ../y.pth --other-optional-params '{"alpha": 0.1}' --iterations 10 --input-mode file result shows OP Type Core Type Min Time(us) Avg Time(us) Max Time(us) Count Axpy AI_VECTOR_CORE 2.24 3.52 5.28 10 ================================================================================ See merge request: Ascend/MindSpeed-Ops!51 | 1 个月前 |