mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
This reverts commit 0b81f700aa7eb20d4b9f20e9627dd1208e50ea58. Reverted https://github.com/pytorch/pytorch/pull/132765 on behalf of https://github.com/ezyang due to implementation is not correct, needs full rewrite ([comment](https://github.com/pytorch/pytorch/pull/132765#issuecomment-2364160452))
16 lines
357 B
C
16 lines
357 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct _PytorchRecordFunctionState;
|
|
typedef struct _PytorchRecordFunctionState _PytorchRecordFunctionState;
|
|
|
|
_PytorchRecordFunctionState* _pytorch_record_function_enter(const char* name);
|
|
void _pytorch_record_function_exit(_PytorchRecordFunctionState* state);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|