Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Done
-
None
Description
There are various scripts that use chains of binary element-wise multiplications such as A * B * B or B * A * B, which are currently compiled to (A * B) * B and (B * A) * B, respectively. We should explicitly reason about and simply this to expose the unary operation B^2 which can be evaluated much more efficiently, in case of both singlenode and distributed operations.