Fix cwise dimension overflow issue again.
If resulting dimensions overflow an int32, we were seeing an overflow and crash due to size mismatch during broadcast assignment. The cause is a simple dimension type mismatch. Note that actual tests for this are currently impractical, since successful operations require more than 2^32 elements and OOM on most machines. PiperOrigin-RevId: 479336566
Showing
想要评论请 注册 或 登录