Making Select broadcastable can let this op easier to use.
Change-Id: I4a4bec4f7cbe532e954a5b4fe53136676ab4300c
Differential D139156
[mlir][tosa] make Select operator broadcastable in the pass tatwaichong on Dec 1 2022, 4:08 PM. Authored by
Details Making Select broadcastable can let this op easier to use. Change-Id: I4a4bec4f7cbe532e954a5b4fe53136676ab4300c
Diff Detail
Event Timeline
Comment Actions
Comment Actions overload reshapeLowerToHigher to support 3 inputs so that the broadcasting happens all at once.
Comment Actions roll back to use the existing pair-wise broadcasting function. Apply each broadcasting to 3 different pairs of inputs. By chaining them this way as a compound the broadcasting happens all at once.
Comment Actions As suggested, mutate the referenced inputs passed in to avoid doing the extra reassigning and stateful variabled in the lowering. |
You don't need separate input1 and outInput1. Just mutate the referenced value passed in. This avoids doing the swapping in the lowering below.