mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
lintrunner
This commit is contained in:
@ -21,7 +21,8 @@
|
||||
#if IS_PYTHON_3_11_PLUS
|
||||
#include <internal/pycore_frame.h>
|
||||
|
||||
#include "stackref_bridge.h"
|
||||
#include <torch/csrc/dynamo/stackref_bridge.h>
|
||||
|
||||
#if IS_PYTHON_3_14_PLUS && !defined(_WIN32)
|
||||
#include <internal/pycore_code.h>
|
||||
#include <internal/pycore_genobject.h>
|
||||
|
||||
@ -68,7 +68,7 @@ FrameLocalsMapping::FrameLocalsMapping(FrameLocalsFrameType* frame)
|
||||
#elif IS_PYTHON_3_14_PLUS
|
||||
for (int i = 0; i < offset; i++) {
|
||||
update_framelocals(
|
||||
i, THP_PyStackRef_AsPyObjectBorrow(&frame->localsplus[i]));
|
||||
i, THP_PyStackRef_AsPyObjectBorrow(&frame->localsplus[i]));
|
||||
}
|
||||
#else
|
||||
for (int i = 0; i < offset; i++) {
|
||||
|
||||
Reference in New Issue
Block a user