File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
graalpython/lib-graalpython/patches/torch Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -527,14 +527,13 @@ index a1d6de21..4a8e6487 100644
527
527
py::class_<torch::autograd::SavedVariable>(m, "SavedTensor")
528
528
.def(py::init([]() -> torch::autograd::SavedVariable {
529
529
diff --git a/torch/csrc/autograd/python_variable_indexing.cpp b/torch/csrc/autograd/python_variable_indexing.cpp
530
- index 8c9ed1d7..5183a325 100644
530
+ index 8c9ed1d7..69ecb4ca 100644
531
531
--- a/torch/csrc/autograd/python_variable_indexing.cpp
532
532
+++ b/torch/csrc/autograd/python_variable_indexing.cpp
533
- @@ -141,26 +141,28 @@ static inline void checkUnpackSlice(
534
- }
533
+ @@ -142,25 +142,28 @@ static inline void checkUnpackSlice(
535
534
536
535
static inline void recordSliceTrace(PyObject* obj) {
537
- - PySliceObject* sliceobj = (PySliceObject*)obj;
536
+ PySliceObject* sliceobj = (PySliceObject*)obj;
538
537
- if (THPVariable_Check(sliceobj->start)) {
539
538
+ PyObject* slicestart = PySlice_Start(sliceobj);
540
539
+ if (THPVariable_Check(slicestart)) {
You can’t perform that action at this time.
0 commit comments