File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
graalpython/lib-graalpython/patches Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -537,6 +537,20 @@ index c301da982..a2668be20 100644
537537+ const int THP_PyOpcode_Caches_size = 0;
538538+
539539+ #endif // GraalPy change
540+ diff --git a/torch/csrc/dynamo/extra_state.c b/torch/csrc/dynamo/extra_state.c
541+ index cbe9ab37a..18740a0d8 100644
542+ --- a/torch/csrc/dynamo/extra_state.c
543+ +++ b/torch/csrc/dynamo/extra_state.c
544+ @@ -100,9 +100,6 @@ void destroy_extra_state(void* obj) {
545+ }
546+
547+ void set_extra_state(PyCodeObject* code, ExtraState* extra_state) {
548+ - ExtraState* old_extra_state = get_extra_state(code);
549+ - CHECK(extra_state == nullptr || old_extra_state != extra_state);
550+ - _PyCode_SetExtra((PyObject*)code, extra_index, extra_state);
551+ }
552+
553+ ExtraState* init_and_set_extra_state(PyCodeObject* code) {
540554diff --git a/torch/csrc/dynamo/eval_frame.c b/torch/csrc/dynamo/eval_frame.c
541555index cbe9ab37a..18740a0d8 100644
542556--- a/torch/csrc/dynamo/eval_frame.c
You can’t perform that action at this time.
0 commit comments