- Remove duplicate functions. tensor::getMixedSize and tensor::getMixedSizes should be used.
- Use tensor::getMixedSize instead of createOrFold<tensor::DimOp>. This is more efficient. createOrFold will create an op an immediately try to fold it. In case of a static dimension size, an attribute can be used directly.
Depends On: D153324