Support coercing host arrays in mlfunc/ReflectedAttr - #8373
rapids-bot[bot] merged 4 commits into
Conversation
|
Am I correct to interpret this as a must-fix follow-up? |
|
No, this is required to continue porting to the new system, but is not a bug in anything that's already been ported. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughChangesFIL output compatibility
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@python/cuml/tests/test_reflection.py`:
- Around line 349-375: Rename the test_convert_arrays_sparse_array parameter
format to sparse_format, and update all references in the parametrization,
sparse.random calls, and output format assertion while preserving the existing
test behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: b42916a0-f6d9-4113-8a50-9e539a2e3da1
📒 Files selected for processing (4)
python/cuml/cuml/__init__.pypython/cuml/cuml/fil/compat.pypython/cuml/cuml/internals/outputs.pypython/cuml/tests/test_reflection.py
e751c15 to
d24ab14
Compare
csadorf
left a comment
There was a problem hiding this comment.
LGTM, just one non-blocking question.
|
/merge |
In #8339 we added
mlfuncandReflectedAttras new output coercion mechanisms. As part of that, we only implemented coercion paths from device matrices (cupy.ndarray/cupyx.scipy.sparse.spmatrix) since cuml generally does all computations on device and any conversion to host will happen later.However, while porting
cuml.filI realized there are a few cases (cuml.filincluded) where we natively output host memory but may still want to coerce it to device later as part of reflection.This PR:
numpy.ndarray/scipy.sparse.spmatrixas source arrays for coercion inmlfunc/ReflectedAttrcuml.filto usemlfunc/ReflectedAttrinstead of the legacy equivalentsFollowup to #8339.
Part of #8177.