xref: /aosp_15_r20/external/pytorch/torch/csrc/dynamo/framelocals_mapping.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/utils/python_compat.h>
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
9 #if IS_PYTHON_3_12_PLUS
10 typedef struct _PyInterpreterFrame _PyInterpreterFrame;
11 PyObject* get_framelocals_mapping(_PyInterpreterFrame* frame);
12 #endif
13 
14 #ifdef __cplusplus
15 } // extern "C"
16 #endif
17