Skip to content

Commit 82ecfc3

Browse files
build: manually update PyTorch version (#4174)
This commit sets the PyTorch and TorchVision versions to nightly release 2025-05-04. Signed-off-by: Vivek Khandelwal <[email protected]>
1 parent 2cd3ff9 commit 82ecfc3

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

lib/Dialect/Torch/Transforms/AbstractInterpLibrary.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15051,18 +15051,26 @@ StringRef mlir::torch::Torch::getAbstractInterpLibrary() {
1505115051
" func.func @\"__torch_mlir_dtype_fn.aten.nll_loss_forward\"(%arg0: !torch.tuple<int, int>, %arg1: !torch.tuple<int, int>, %arg2: !torch.optional<tuple<int, int>>, %arg3: !torch.int, %arg4: !torch.int) -> !torch.tuple<int, int> {\n"
1505215052
" %none = torch.constant.none\n"
1505315053
" %str = torch.constant.str \"AssertionError: \"\n"
15054+
" %int3 = torch.constant.int 3\n"
15055+
" %true = torch.constant.bool true\n"
1505415056
" %int4 = torch.constant.int 4\n"
1505515057
" %0:2 = torch.prim.TupleUnpack %arg0 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
1505615058
" %1:2 = torch.prim.TupleUnpack %arg1 : !torch.tuple<int, int> -> !torch.int, !torch.int\n"
1505715059
" %2 = torch.aten.eq.int %1#1, %int4 : !torch.int, !torch.int -> !torch.bool\n"
15058-
" torch.prim.If %2 -> () {\n"
15060+
" %3 = torch.prim.If %2 -> (!torch.bool) {\n"
15061+
" torch.prim.If.yield %true : !torch.bool\n"
15062+
" } else {\n"
15063+
" %5 = torch.aten.eq.int %1#1, %int3 : !torch.int, !torch.int -> !torch.bool\n"
15064+
" torch.prim.If.yield %5 : !torch.bool\n"
15065+
" }\n"
15066+
" torch.prim.If %3 -> () {\n"
1505915067
" torch.prim.If.yield\n"
1506015068
" } else {\n"
1506115069
" torch.prim.RaiseException %str, %none : !torch.str, !torch.none\n"
1506215070
" torch.prim.If.yield\n"
1506315071
" }\n"
15064-
" %3 = torch.prim.TupleConstruct %0#1, %0#1 : !torch.int, !torch.int -> !torch.tuple<int, int>\n"
15065-
" return %3 : !torch.tuple<int, int>\n"
15072+
" %4 = torch.prim.TupleConstruct %0#1, %0#1 : !torch.int, !torch.int -> !torch.tuple<int, int>\n"
15073+
" return %4 : !torch.tuple<int, int>\n"
1506615074
" }\n"
1506715075
" func.func @\"__torch_mlir_dtype_fn.aten.native_layer_norm\"(%arg0: !torch.tuple<int, int>, %arg1: !torch.list<int>, %arg2: !torch.optional<tuple<int, int>>, %arg3: !torch.optional<tuple<int, int>>, %arg4: !torch.float) -> !torch.tuple<int, int, int> {\n"
1506815076
" %int7 = torch.constant.int 7\n"

projects/pt1/python/torch_mlir/jit_ir_importer/build_tools/abstract_interp_lib_gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4997,7 +4997,7 @@ def aten〇nan_to_num〡dtype(self_rank_dtype: Tuple[int, int], nan: Optional[fl
49974997
@check_dtype_function(
49984998
[Invocation(TensorOfShape(2, 3, dtype=torch.float32), TensorOfShape(2, dtype=torch.int64),
49994999
TensorOfShape(3, dtype=torch.float32), reduction=0, ignore_index=0),
5000-
ErrorInvocation(TensorOfShape(2, 3, dtype=torch.float32), TensorOfShape(2, dtype=torch.int32), # target must be int64
5000+
Invocation(TensorOfShape(2, 3, dtype=torch.float32), TensorOfShape(2, dtype=torch.int32), # target must be int64
50015001
TensorOfShape(3, dtype=torch.float32), reduction=0, ignore_index=0),
50025002
ErrorInvocation(TensorOfShape(2, 3, dtype=torch.float32), TensorOfShape(2, dtype=torch.float64), # target must be int64
50035003
TensorOfShape(3, dtype=torch.float32), reduction=0, ignore_index=0),
@@ -5010,7 +5010,7 @@ def aten〇nan_to_num〡dtype(self_rank_dtype: Tuple[int, int], nan: Optional[fl
50105010
def aten〇nll_loss_forward〡dtype(self_rank_dtype: Tuple[int, int], target_rank_dtype: Tuple[int, int], weight_rank_dtype: Optional[Tuple[int, int]], reduction: int, ignore_index: int) -> Tuple[int, int]:
50115011
self_rank, self_dtype = self_rank_dtype
50125012
target_rank, target_dtype = target_rank_dtype
5013-
assert target_dtype == torch.int64
5013+
assert target_dtype == torch.int64 or target_dtype == torch.int32
50145014
return self_dtype, self_dtype
50155015

50165016
@check_dtype_function(

pytorch-hash.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
dab7e5700392e4e20626de9c367acb76187807f5
1+
5ca255eb2992a9ade21b8b12be42c57029cd73f4

pytorch-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-f https://download.pytorch.org/whl/nightly/cpu/torch/
22
--pre
3-
torch==2.8.0.dev20250423
3+
torch==2.8.0.dev20250504

torchvision-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-f https://download.pytorch.org/whl/nightly/cpu/torchvision/
22
--pre
3-
torchvision==0.22.0.dev20250423
3+
torchvision==0.22.0.dev20250504

0 commit comments

Comments
 (0)