-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[lang] "ti.chain_compare" now can return python-scope constants #1356
[lang] "ti.chain_compare" now can return python-scope constants #1356
Conversation
This reverts commit d1a356e.
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.
I wonder if this will reopen #327?
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.
Looks good -- I just checked that 1 < ti.append(x.snode().parent(), [], 1) < 10
won't be evaluated twice.
What if the user calls a |
Do we have a test on this? If not, let me write one. |
This comment has been minimized.
This comment has been minimized.
We don't have one now. Please write one, likely near |
b = ti.var(ti.i32, ()) | ||
|
||
@ti.func | ||
def why_this_foo_fail(n): |
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.
Fix in #1380.
|
||
@ti.kernel | ||
def func(): | ||
a[None] = 0 <= foo(2) < 1 |
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 here @yuanming-hu.
This reverts commit d1a356e.
Related issue = to make a way for #1344
[Click here for the format server]