-
Notifications
You must be signed in to change notification settings - Fork 114
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
base: main
Are you sure you want to change the base?
Conversation
These are missing tests; will add a small one soon ™️ |
Codecov ReportAttention: Patch coverage is
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
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/