-
Notifications
You must be signed in to change notification settings - Fork 123
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
Torch add invert and split #1112
Conversation
These are missing tests; will add a small one soon ™️ |
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #1112 +/- ##
==========================================
- Coverage 82.10% 82.10% -0.01%
==========================================
Files 185 185
Lines 48089 48097 +8
Branches 8659 8659
==========================================
+ Hits 39485 39489 +4
- Misses 6439 6443 +4
Partials 2165 2165
|
|
||
@pytorch_funcify.register(Split) | ||
def pytorch_funcify_Split(op, node, **kwargs): | ||
def inner_fn(x, dim, split_amounts): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A more descriptive name is nice because it shows in the compiled function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea your totally right
I'm about to merge another PR that contains these and a test. I'll close this out for now. |
Description
These ops were needed to verify the pymc model in #1110
Related Issue
Checklist
Type of change
📚 Documentation preview 📚: https://pytensor--1112.org.readthedocs.build/en/1112/