| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #2838 +/- ##
==========================================
+ Coverage 78.95% 78.97% +0.01%
==========================================
Files 248 248
Lines 50877 50901 +24
Branches 4394 4395 +1
==========================================
+ Hits 40170 40197 +27
+ Misses 9908 9905 -3
Partials 799 799 ☔ View full report in Codecov by Sentry.
|
Sorry, something went wrong.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Sorry, something went wrong.
There was a problem hiding this comment.
What's the reasoning behind this change?
Sorry, something went wrong.
| exprs[i] = e.func(*e.args, conditionals=conditionals) | ||
|
|
||
| guards = {d: sympy.And(*v, evaluate=False) for d, v in guards.items()} | ||
| # Combination mode is And by default and Or if all conditions are |
There was a problem hiding this comment.
"Combination mode is And by default. If all conditions are Or then Or combination mode is used." may be less ambiguous
Sorry, something went wrong.
There was a problem hiding this comment.
(nitpicking, with backtips ` around mode)
Sorry, something went wrong.
| index into arrays. A typical use case is when arrays are accessed | ||
| indirectly via the ``condition`` expression. | ||
| relation: Or/And, default=And | ||
| How this ConditionalDimension will be combined with other ones. |
There was a problem hiding this comment.
Seems slightly unintuitive to specify this here? Surely it would make more sense to specify how ConditionalDimensions are combined at the point of combination?
Perhaps with an API like cdim.and(other) and cdim.or(other) which returns a new ConditionalDimension which combines the conditions of its constituent ConditionalDimensions?
Sorry, something went wrong.
There was a problem hiding this comment.
Surely it would make more sense to specify how ConditionalDimensions are combined at the point of combination?
You cannot so that's not relvant. A Function a defined dimension. It will be combined with any indices and implicit_dims at lowering. Combinining it by hand won't do anything as it will be combined yet again at lowering with And making it useless
Sorry, something went wrong.
There was a problem hiding this comment.
Ah ok, so this is to do with how it's handled during lowering and the combination is not exposed at the API level? It might be worth adding a note to the notebook explaining when you would want to change relation?
Sorry, something went wrong.
The test/MFE |
Sorry, something went wrong.
| eqs.append(Eq(f.forward, T+1, implicit_dims=ctend)) | ||
|
|
||
| # run operator with buffering | ||
| op = Operator(eqs, opt=('streaming', 'buffering')) |
There was a problem hiding this comment.
you don't need or want "streaming" here
Sorry, something went wrong.
| exprs[i] = e.func(*e.args, conditionals=conditionals) | ||
|
|
||
| guards = {d: sympy.And(*v, evaluate=False) for d, v in guards.items()} | ||
| # Combination `mode` is And by default and Or if all conditions are |
There was a problem hiding this comment.
ultra-nitpick, can be rephrased/adjusted/fixed, but can go in a different PR
Sorry, something went wrong.
| relation: Or/And, default=And | ||
| How this ConditionalDimension will be combined with other ones during | ||
| lowering for example combining Function's ConditionalDimension with | ||
| and Equation's implicit_dim. All dimensions within an equation |
There was a problem hiding this comment.
with and
Sorry, something went wrong.
There was a problem hiding this comment.
ultra-nitpick: Dimensions (not dimensions)
Sorry, something went wrong.
|
|
||
| __rkwargs__ = DerivedDimension.__rkwargs__ + \ | ||
| ('factor', 'condition', 'indirect') | ||
| ('factor', 'condition', 'indirect', 'relation') |
There was a problem hiding this comment.
not a big fan of the name "relation" as it's a bit vague
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
API up to debate, but need something within these line to allow for the MFE (see test)