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
Current dtype_inference.cc handles coercion like Mul(x:int32, y:float32) => z:float32. However, the backprop of this op will be Mul(gz:float32, x:int32) => gy:float32 (OK) and Mul(gz:float32, y:float32) => gx:int32 (fail). This issue is exposed in #247 . I think we should probably insert Cast operations automatically instead of allowing coercion.
The text was updated successfully, but these errors were encountered:
Current dtype_inference.cc handles coercion like
Mul(x:int32, y:float32) => z:float32
. However, the backprop of this op will beMul(gz:float32, x:int32) => gy:float32
(OK) andMul(gz:float32, y:float32) => gx:int32
(fail). This issue is exposed in #247 . I think we should probably insertCast
operations automatically instead of allowing coercion.The text was updated successfully, but these errors were encountered: