-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change Batch.empty to in-place fill; add copy option for Batch construction #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
94ab300
to
ec40f37
Compare
ec40f37
to
fa74486
Compare
Give me a few minutes to review your PR please. |
9014681
to
050f569
Compare
Codecov Report
@@ Coverage Diff @@
## master #110 +/- ##
=======================================
Coverage 84.41% 84.42%
=======================================
Files 29 29
Lines 1887 1875 -12
=======================================
- Hits 1593 1583 -10
+ Misses 294 292 -2
Continue to review full report at Codecov.
|
@duburcqa I update the code and you can have a review. |
@duburcqa any more comments? |
No it's fine ! Good job to both of you 👍 |
…uction (thu-ml#110) * in-place empty_ for Batch * change Batch.empty to in-place fill; add copy option for Batch construction * type signiture & remove shadow names for copy * add doc for data type (only support numbers and object data type) * add unit test for Batch copy * fix pep8 * add test case for Batch.empty * doc fix * fix pep8 * use object to test Batch * test commit * refact * change Batch(copy) testcase * minor fix Co-authored-by: Trinkle23897 <463003665@qq.com>
Less important but also useful: