pytensor
pytensor copied to clipboard
Add torch ifelse
Description
Add the IfElse op support in torch (reopened cause i git screwup my old branch)
Related Issue
- [ ] Closes #
- [ ] Related to #821
Checklist
- [x] Checked that the pre-commit linting/style checks pass
- [x] Included tests that prove the fix is effective or that the new feature works
- [ ] Added necessary documentation (docstrings and/or example notebooks)
- [x] If you are a pro: each commit corresponds to a relevant logical change
Type of change
- [X] New feature / enhancement
- [ ] Bug fix
- [ ] Documentation
- [ ] Maintenance
- [ ] Other (please specify):
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.74%. Comparing base (
8a6e407) to head (eda2dbc). Report is 115 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #974 +/- ##
=======================================
Coverage 81.74% 81.74%
=======================================
Files 183 183
Lines 47733 47742 +9
Branches 11616 11617 +1
=======================================
+ Hits 39020 39029 +9
- Misses 6518 6520 +2
+ Partials 2195 2193 -2
| Files with missing lines | Coverage Δ | |
|---|---|---|
| pytensor/link/pytorch/dispatch/basic.py | 94.44% <100.00%> (+0.50%) |
:arrow_up: |
Thanks @Ch0ronomato