python-torch/0004-torch-python-3.12-changes.patch
Tom Rix 48192fa108 Initial import
Signed-off-by: Tom Rix <trix@redhat.com>
2023-12-02 15:19:42 -05:00

26 lines
799 B
Diff

From dcd60ab193aca8811e1283003cbcca4946c6b48e Mon Sep 17 00:00:00 2001
From: Tom Rix <trix@redhat.com>
Date: Fri, 29 Sep 2023 13:58:28 -0700
Subject: [PATCH 4/6] torch python 3.12 changes
Signed-off-by: Tom Rix <trix@redhat.com>
---
torch/csrc/dynamo/cpython_defs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/torch/csrc/dynamo/cpython_defs.h b/torch/csrc/dynamo/cpython_defs.h
index f0a0e1a88e..f58becd246 100644
--- a/torch/csrc/dynamo/cpython_defs.h
+++ b/torch/csrc/dynamo/cpython_defs.h
@@ -6,7 +6,7 @@
// should go in cpython_defs.c. Copying is required when, e.g.,
// we need to call internal CPython functions that are not exposed.
-#if IS_PYTHON_3_11_PLUS && !(IS_PYTHON_3_12_PLUS)
+#if IS_PYTHON_3_11_PLUS
#include <internal/pycore_frame.h>
--
2.41.0