You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ElementwiseToLinalg pass in MLIR only supports operations where all operands are tensors and this requirement has been left in place for the ElementwiseToAffine pass. However, the reason that this limitation is necessary for the linalg version doesn't exist in the affine version, which should already support scalar operands as-is (well, after replacing the all_of in isElementwiseMappableOpOnRankedTensors with any_of) . However, polynomial operations have a SameOperandsAndResultType constraint, so to test whether this feature actually works as expected, we'd need to either allow mixed tensor-scalar operations and/or simply test this pass with a different ElementwiseMappable op.
The text was updated successfully, but these errors were encountered:
The
ElementwiseToLinalg
pass in MLIR only supports operations where all operands are tensors and this requirement has been left in place for theElementwiseToAffine
pass. However, the reason that this limitation is necessary for the linalg version doesn't exist in the affine version, which should already support scalar operands as-is (well, after replacing theall_of
inisElementwiseMappableOpOnRankedTensors
withany_of
) . However,polynomial
operations have aSameOperandsAndResultType
constraint, so to test whether this feature actually works as expected, we'd need to either allow mixed tensor-scalar operations and/or simply test this pass with a differentElementwiseMappable
op.The text was updated successfully, but these errors were encountered: