Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoBump] Merge with fixes of ee08942c (Dec 02) (124) #514

Merged
merged 5 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Conversion/TorchToLinalg/Random.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ConvertAtenUniformOp : public OpConversionPattern<AtenUniformOp> {
Value res =
randomUniformF64(b, loc, linearIndex, key, min, max);
Value truncRes = res;
if (isa<Float16Type, Float32Type>(elemTy))
if (isa<BFloat16Type, Float16Type, Float32Type>(elemTy))
truncRes = b.create<arith::TruncFOp>(loc, elemTy, res);
b.create<linalg::YieldOp>(loc, truncRes);
})
Expand Down
8 changes: 5 additions & 3 deletions projects/pt1/e2e_testing/xfail_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
# if a dimension is specified in all expand lists, and not in sumdim list.
# This is a bug in the implementation of _trilinear in PyTorch.
"Aten_TrilinearModuleZerodDimBug_basic",
# missing lowering from aten.pow.Tensor_Tensor for integer result
"PowIntIntModule_basic",
}

if torch_version_for_comparison() < version.parse("2.5.0.dev"):
Expand Down Expand Up @@ -220,7 +222,6 @@
"AtenIntBoolOpConstFalseModule_basic",
"AtenIntBoolOpConstTrueModule_basic",
"IntFloatModule_basic",
"PowIntFloatModule_basic",
# END tests failing due to: torch._dynamo.exc.Unsupported: torch.* op returned non-Tensor int call_function aten.Int
# ERROR: torch._dynamo.exc.Unsupported: torch.* op returned non-Tensor int call_function aten.len
"LenStrModule_basic",
Expand Down Expand Up @@ -857,7 +858,6 @@
"NormalFunctionalModule_basic",
"NumelModule_basic",
"NumelZeroRankModule_basic",
"PowIntFloatModule_basic",
"PrimMaxIntModule_basic",
"PrimMinIntDynamicModule_basic",
"PrimMinIntModule_basic",
Expand Down Expand Up @@ -2373,6 +2373,8 @@
"PadWithNoneValModule_basic",
"PermuteModule_basic",
"PermuteNegativeIndexModule_basic",
"PowFloatFloatModule_basic",
"PowFloatIntModule_basic",
"PrimListUnpackNumMismatchModule_basic",
"PrimsIotaModule_basic",
"PrimsSqueezeEmptyDimensionsModule_basic",
Expand Down Expand Up @@ -3153,6 +3155,7 @@
"PixelShuffleModuleSpatiallyDynamic_basic",
"PixelShuffleModuleSpatiallyStatic_basic",
"PixelShuffleModuleStaticRank3Int64_basic",
"PowIntIntModule_basic",
"PrimMaxIntModule_basic",
"PrimMinIntDynamicModule_basic",
"PrimMinIntModule_basic",
Expand Down Expand Up @@ -4777,7 +4780,6 @@
"PixelShuffleModuleSpatiallyStatic_basic",
"PixelShuffleModuleStaticRank3Int64_basic",
"PixelShuffleModuleStaticRank4Float32_basic",
"PowIntFloatModule_basic",
"PrimMaxIntModule_basic",
"PrimMinIntDynamicModule_basic",
"PrimMinIntModule_basic",
Expand Down