You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This definitely seems like a premature optimization and I'd really want to see performance data to know which method to prefer. I'm not convinced that one expression is better than the other WRT performance.
Per @Yurlungur we may want to replace
with
x = (cond) * a + (1 - cond) * b
to reduce branching and improve GPU performance.
This might be premature optimization, but it also might be a good way to specify default handling of NaNs as well.
The text was updated successfully, but these errors were encountered: