[OPTIMIZER] layout simplification: ignore non-tensor iter arguments in for loop rematerialization (#749)
This commit is contained in:
@@ -306,6 +306,8 @@ public:
|
||||
auto fwdCvtIt = std::find_if(opIt, fwdEndIt, isCvt);
|
||||
auto bwdCvtIt = std::find_if(bwdBeginIt, opIt, isCvt);
|
||||
|
||||
if (!iterArg.value().getType().isa<RankedTensorType>())
|
||||
continue;
|
||||
if (fwdCvtIt != fwdEndIt) {
|
||||
auto newFor = tryConvertIterArg(forOp, rewriter, iterArg.index(),
|
||||
(*fwdCvtIt)->getResult(0).getType());
|
||||
|
Reference in New Issue
Block a user