This commit adds canonicalization pattern in linalg.generic op
for static shape inference. If any of the inputs or outputs have
static shape or is casted from a tensor of static shape, then
shapes of all the inputs and outputs can be inferred by using the
affine map of the static shape input/output.
Signed-Off-By: Prateek Gupta <prateek@nod-labs.com>
The startIdx part is confusing to me in the way this is written. There seems to be some handshake between source and operands here. Maybe this could work,
In any case, looking at the uses, do you even need to use source. Looks like operands is all you need.