Skip to content

Commit

Permalink
Rebase main
Browse files Browse the repository at this point in the history
  • Loading branch information
sahas3 committed Jan 13, 2025
1 parent 5377c22 commit 55ae508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/Conversion/TorchToTosa/TosaLegalizeUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ LogicalResult tosaCastTensorToType(PatternRewriter &rewriter, Operation *op,
auto floor = rewriter.create<tosa::FloorOp>(op->getLoc(), srcType, src);
auto ceil = rewriter.create<tosa::CeilOp>(op->getLoc(), srcType, src);

auto zeroValue = tosa::getConstTensor<float>(rewriter, op, 0, {}).value();
auto zeroValue =
tosa::getConstTensor<float>(rewriter, op, 0, {}, srcElemTy).value();

auto boolType = srcType.clone(rewriter.getIntegerType(1));
auto isNegative = tosa::CreateOpAndInfer<tosa::GreaterOp>(
Expand Down
4 changes: 1 addition & 3 deletions projects/pt1/e2e_testing/xfail_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3336,6 +3336,7 @@
}

FX_IMPORTER_TOSA_XFAIL_SET = {
"ScatterAddDynamicModule_basic",
"UniformModule_basic",
"UniformStaticShapeModule_basic",
"AtenFftRfft2DLastDim_basic",
Expand Down Expand Up @@ -3545,9 +3546,6 @@
"ElementwiseQuantizePerTensorUIntModule_basic",
"ElementwiseSinhIntModule_basic",
"ElementwiseSinhModule_basic",
"ElementwiseSpecialExpm1IntModule_basic",
"ElementwiseSpecialExpm1Module_basic",
"ElementwiseToDtypeF32ToI64Module_basic",
"ElementwiseToDtypeI64ToUI8Module_basic",
"EqIntModule_basic",
"FloatImplicitModule_basic",
Expand Down

0 comments on commit 55ae508

Please sign in to comment.