From c8c7fe39d454c8d310d0ec7f4cf3f170a01fae8b Mon Sep 17 00:00:00 2001 From: Vivek Khandelwal Date: Thu, 22 Dec 2022 10:31:28 +0530 Subject: [PATCH] [MLIR][TORCH] Add missing ops in RefineTypes.cpp Signed-Off By: Vivek Khandelwal --- lib/Dialect/Torch/Transforms/RefineTypes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Dialect/Torch/Transforms/RefineTypes.cpp b/lib/Dialect/Torch/Transforms/RefineTypes.cpp index bd6b9e61b9f4..9b503fb64d45 100644 --- a/lib/Dialect/Torch/Transforms/RefineTypes.cpp +++ b/lib/Dialect/Torch/Transforms/RefineTypes.cpp @@ -668,7 +668,7 @@ void TypeAnalysis::visitOperation(Operation *op, AtenTriuOp, AtenMaskedFillTensorOp, AtenRollOp, AtenPowTensorTensorOp, AtenLiftFreshCopyOp, AtenIndexTensorHackedTwinOp, AtenUpsampleNearest2dOp, AtenMishOp, AtenRoundOp, AtenFillTensorOp, - AtenUpsampleNearest2dBackwardOp>(op)) { + AtenUpsampleNearest2dBackwardOp, AtenTanhOp>(op)) { return incorporateKnowledge(op->getResult(0), operands[0]->getValue()); } @@ -782,7 +782,7 @@ void TypeAnalysis::visitOperation(Operation *op, // Promote LHS with scalar RHS. if (isa(op)) { + AtenLeakyReluOp, AtenRemainderScalarOp, AtenRsubScalarOp>(op)) { auto lhs = operands[0]->getValue(); Value scalar = op->getOperand(1); auto knowledge =