-
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
ti.max() behaves differently with built-in function max #4087
Comments
This is indeed a problem. ti.max(4, ti.Vector([3, 4, 5])) # [4, 4, 5]
max(4, ti.Vector([3, 4, 5])) # [3, 4, 5]
max(ti.Vector([3, 4, 5]), 4) # 4 |
|
If we change |
For the accordance in Python scope and Taichi scope, we should also deprecate the use of builtin |
Example code:
The text was updated successfully, but these errors were encountered: