Skip to content

Commit

Permalink
[MLIR][TORCH] Add missing ops in RefineTypes.cpp
Browse files Browse the repository at this point in the history
Signed-Off By: Vivek Khandelwal<[email protected]>
  • Loading branch information
vivekkhandelwal1 committed Dec 22, 2022
1 parent 297fd3a commit c8c7fe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Dialect/Torch/Transforms/RefineTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down Expand Up @@ -782,7 +782,7 @@ void TypeAnalysis::visitOperation(Operation *op,
// Promote LHS with scalar RHS.
if (isa<AtenAddScalarOp, AtenSubScalarOp, AtenMulScalarOp, AtenDivScalarOp,
AtenFmodScalarOp, AtenFloorDivideScalarOp, AtenPowTensorScalarOp,
AtenLeakyReluOp, AtenRemainderScalarOp>(op)) {
AtenLeakyReluOp, AtenRemainderScalarOp, AtenRsubScalarOp>(op)) {
auto lhs = operands[0]->getValue();
Value scalar = op->getOperand(1);
auto knowledge =
Expand Down

0 comments on commit c8c7fe3

Please sign in to comment.