[MLIR][Shape] Fix ambiguous symbol
authorFrederik Gossen <frgossen@google.com>
Thu, 25 Jun 2020 09:39:35 +0000 (09:39 +0000)
committerFrederik Gossen <frgossen@google.com>
Thu, 25 Jun 2020 09:40:08 +0000 (09:40 +0000)
mlir/lib/Conversion/ShapeToSCF/ShapeToSCF.cpp

index adf046e..55ebae9 100644 (file)
@@ -95,7 +95,7 @@ ShapeOfOpConverter::matchAndRewrite(ShapeOfOp op, ArrayRef<Value> operands,
 
   // Allocate stack memory.
   auto loc = op.getLoc();
-  auto rankVal = rewriter.create<RankOp>(loc, tensorVal);
+  auto rankVal = rewriter.create<mlir::RankOp>(loc, tensorVal);
   auto i64Ty = rewriter.getI64Type();
   auto memTy = MemRefType::get({ShapedType::kDynamicSize}, i64Ty);
   auto memVal = rewriter.create<AllocaOp>(loc, memTy, ValueRange({rankVal}));