[CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充#6200
Open
kesmeey wants to merge 8 commits intoPaddlePaddle:developfrom
Open
[CI] 【Hackathon 10th Spring No.31】功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充#6200kesmeey wants to merge 8 commits intoPaddlePaddle:developfrom
kesmeey wants to merge 8 commits intoPaddlePaddle:developfrom
Conversation
|
Thanks for your contribution! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6200 +/- ##
==========================================
Coverage ? 71.21%
==========================================
Files ? 394
Lines ? 53951
Branches ? 8466
==========================================
Hits ? 38421
Misses ? 12762
Partials ? 2768
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
功能模块 fastdeploy/model_executor/layers/sample/sampler.py单测补充
develop分支,覆盖率68 ,miss行数156(53-58, 142->146, 183, 188, 196, 203->206, 206->191, 223-224, 232-234, 245-246, 267->269, 275, 278, 288, 292->296, 311->317, 312->317, 323, 330, 360-361, 373-375, 379, 393, 409-412, 423-436, 438, 489-491, 511, 551-552, 574-606, 619-620, 637, 641, 661-670, 681-696, 698, 734-736, 760-761, 782, 878->881, 908-984, 995-996, 1004, 1013, 1017, 1021, 1029-1080, 1104-1122, 1135-1141, 1147-1148, 1176-1187, 1205-1239)
当前pr,覆盖率85,miss行数 62
完成单测覆盖行数156-62=94
Modifications
add unittest tests/layers/test_sampler.py
Usage or Command
No need
Accuracy Tests
No need
Checklist
[FDConfig],[APIServer],[Engine],[Scheduler],[PD Disaggregation],[Executor],[Graph Optimization],[Speculative Decoding],[RL],[Models],[Quantization],[Loader],[OP],[KVCache],[DataProcessor],[BugFix],[Docs],[CI],[Optimization],[Feature],[Benchmark],[Others],[XPU],[HPU],[GCU],[DCU],[Iluvatar],[Metax]]pre-commitbefore commit.releasebranch, make sure the PR has been submitted to thedevelopbranch, then cherry-pick it to thereleasebranch with the[Cherry-Pick]PR tag.