xref: /aosp_15_r20/external/pytorch/torch/csrc/dynamo/cpp_shim.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 #ifdef __cplusplus
3 extern "C" {
4 #endif
5 
6 struct _PytorchRecordFunctionState;
7 typedef struct _PytorchRecordFunctionState _PytorchRecordFunctionState;
8 
9 _PytorchRecordFunctionState* _pytorch_record_function_enter(const char* name);
10 _PytorchRecordFunctionState* _pytorch_record_function_enter_with_context(
11     const char* name,
12     const char* context);
13 void _pytorch_record_function_exit(_PytorchRecordFunctionState* state);
14 
15 #ifdef __cplusplus
16 } // extern "C"
17 #endif
18