-
Notifications
You must be signed in to change notification settings - Fork 134
Allow rebuilding graphs when output type depends on input values #280
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
Allow rebuilding graphs when output type depends on input values #280
Conversation
c956086
to
86c6ac0
Compare
86c6ac0
to
2c429c0
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #280 +/- ##
=======================================
Coverage 80.39% 80.40%
=======================================
Files 156 156
Lines 45397 45400 +3
Branches 11106 11104 -2
=======================================
+ Hits 36497 36502 +5
+ Misses 6694 6691 -3
- Partials 2206 2207 +1
|
2c429c0
to
54b4b94
Compare
54b4b94
to
2a5b419
Compare
I test that the Shape Op is present even when static shapes are present. |
306f531
to
d15f8ca
Compare
d15f8ca
to
214a447
Compare
214a447
to
24c20dc
Compare
24c20dc
to
e0febc4
Compare
for i, (curr, new) in enumerate(zip(self.inputs, new_inputs)): | ||
if curr.type != new.type: | ||
if (curr.type != new.type) or output_type_depends_on_input_value: |
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.
Not super clear the branching logic from the outsider glance, can you please add comments that explain what exactly happens in each branch?
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.
Done
These nodes must always be rebuilt in non-strict mode
e0febc4
to
0522b2a
Compare
Closes #254
Closes #253