Skip to content

Commit

Permalink
Merge branch 'bump_to_b6f04fa3' into bump_to_0eba539e
Browse files Browse the repository at this point in the history
  • Loading branch information
mgehre-amd authored Feb 4, 2025
2 parents 60fb108 + 4a7ae63 commit 93fa9a8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion externals/llvm-project
Submodule llvm-project updated 3410 files
7 changes: 5 additions & 2 deletions lib/Conversion/TorchToTosa/TorchToTosa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5194,8 +5194,11 @@ LogicalResult ConvertAtenOp<PrimNumToTensorScalarOp>::matchAndRewrite(
ConversionPatternRewriter &rewriter) const {

const TypeConverter *typeConverter = this->getTypeConverter();
RankedTensorType resultType = cast<RankedTensorType>(
typeConverter->convertType(op->getResult(0).getType()));
TensorType resultType =
cast<TensorType>(typeConverter->convertType(op->getResult(0).getType()));

if (!resultType.hasRank())
return rewriter.notifyMatchFailure(op, "expected ranked tensor");

// Only supports integer operand type, because for the floating point operand
// type result tensor has to be of type `f64` which is not supported in the
Expand Down
6 changes: 5 additions & 1 deletion projects/pt1/e2e_testing/xfail_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@
"ConvolutionBackwardModule2D_basic",
"CumsumModule_basic",
"CumprodModule_basic",
"CrossEntropyLossModule_basic",
"CrossEntropyLossNoReductionModule_basic",
"DeformConv2D_basic",
"DivFloatModule_basic",
"DivIntModule_basic",
Expand Down Expand Up @@ -526,6 +528,8 @@
if torch_version_for_comparison() < version.parse("2.6.0.dev"):
# Passing on stable but failing on nightly
FX_IMPORTER_XFAIL_SET -= {
"CrossEntropyLossModule_basic",
"CrossEntropyLossNoReductionModule_basic",
"ChunkListUnpackDynamic_Module_basic",
"ChunkListUnpackUnevenDynamic_Module_basic",
"ChunkListUnpackUneven_Module_basic",
Expand Down Expand Up @@ -3754,6 +3758,7 @@
"IntImplicitModule_basic",
"IsFloatingPointFloat_True",
"IsFloatingPointInt_False",
"IsInfiniteModule_basic",
"LayerNormLastDimModule_basic",
"LayerNormModule_basic",
"LayerNormNormalizeOverAllDimsModule_basic",
Expand Down Expand Up @@ -4066,7 +4071,6 @@
"ElementwiseLogSigmoidModule_basic",
"ElementwiseRreluWithNoiseTrainModule_basic",
"ElementwiseRreluWithNoiseTrainStaticModule_basic",
"IsInfiniteModule_basic",
"NumToTensorFloatModule_basic",
"NumToTensorIntModule_basic",
"RsubInt0d_NumToTensor_Module_basic",
Expand Down

0 comments on commit 93fa9a8

Please sign in to comment.