Skip to content

Commit 22b0eed

Browse files
committed
Fix version in torch patch
1 parent 991989e commit 22b0eed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

graalpython/lib-graalpython/patches/torch/torch-2.2.1.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,18 @@ index 68fd53d0..2871915e 100644
317317
auto *tb = reinterpret_cast<PyTracebackObject *>(m_trace.ptr());
318318

319319
// Get the deepest trace possible.
320+
diff --git a/tools/generate_torch_version.py b/tools/generate_torch_version.py
321+
index 93689693..81e360dc 100644
322+
--- a/tools/generate_torch_version.py
323+
+++ b/tools/generate_torch_version.py
324+
@@ -40,6 +40,7 @@ def get_tag(pytorch_root: Union[str, Path]) -> str:
325+
326+
327+
def get_torch_version(sha: Optional[str] = None) -> str:
328+
+ return '2.2.1'
329+
pytorch_root = Path(__file__).parent.parent
330+
version = open(pytorch_root / "version.txt").read().strip()
331+
320332
diff --git a/torch/_dynamo/types.py b/torch/_dynamo/types.py
321333
index 0c1deddd..f60e9d72 100644
322334
--- a/torch/_dynamo/types.py

0 commit comments

Comments
 (0)