Repository navigation
Handle empty ragged copies during compilation - #1328
Conversation
|
Action performed
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1328 +/- ##
=======================================
Coverage 82.39% 82.39%
=======================================
Files 185 185
Lines 11773 11775 +2
=======================================
+ Hits 9700 9702 +2
Misses 2073 2073 ☔ View full report in Codecov by Harness. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Data slice selection sdm/tensor/var_len.py |
_to_dtype_layout selects an empty slice when inp.numel() == 0. Non-empty inputs retain offset-based slicing. The selected data is converted as before. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Merge Risk: 
Minimal · up to 69277
-
The change addresses empty ragged tensor conversion without introducing an actionable correctness or availability risk.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Summary
Description of the change
Validation
Minimal reproducer