From 0bee448294915084c06eb2b74edf7637643deef4 Mon Sep 17 00:00:00 2001 From: wangjiyu Date: Wed, 16 Apr 2025 17:46:00 +0800 Subject: [PATCH] debug --- util/RTCContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/RTCContext.cpp b/util/RTCContext.cpp index 6b071a6..8005dd1 100644 --- a/util/RTCContext.cpp +++ b/util/RTCContext.cpp @@ -712,7 +712,7 @@ np::ndarray RTCContext::getNumpydata() { std::cout << "step4" << std::endl; PyGILState_STATE gstate = PyGILState_Ensure(); - np::ndarray result; + np::ndarray result = np::empty(bp::make_tuple(length), np::dtype::get_builtin()); try { if (!data_ptr || length == 0) { result = np::zeros(bp::make_tuple(0), np::dtype::get_builtin());