diff --git a/torch_npu/csrc/profiler/profiler_python.cpp b/torch_npu/csrc/profiler/profiler_python.cpp index cba33f749d483ed59d62c740e86f5c6088f4f68c..46ec6e58c6e8ed945682b171f3a6a8fe0b674d8d 100644 --- a/torch_npu/csrc/profiler/profiler_python.cpp +++ b/torch_npu/csrc/profiler/profiler_python.cpp @@ -252,6 +252,7 @@ private: PythonTracer& PythonTracer::singleton() { + pybind11::gil_scoped_release release_gil; static PythonTracer singleton_; return singleton_; }