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
Here is @abergeron comment:
"""
I would prefer not to multiply the possible C code b y including a
cartesian product of all the types.
Also, if we do it this way it gives the opportunity to merge the cast with
another elemwise operation.
Finally since we have float16 support, there would need to be special-case
handling of casting to and from that type which would complicate the kernel
code.
"""
There isn't always elemwise. We could skip not supporting all cases, like
float16. I don't know how frequently that will help. Mostly, it depend how
frequently this happen in real user code. But there is still theoretical
case where this could be good to do.
I have no problem to wait to see it in real code before working on that.
See: dc7f7a4
The cast should be inside the kernel, not inside the graph.
The text was updated successfully, but these errors were encountered: