From 3b015840b1c78edf4678c3b8a4dfd8f8d17131ac Mon Sep 17 00:00:00 2001 From: Xiaochang Wu Date: Thu, 2 Nov 2023 18:11:57 +0800 Subject: [PATCH] Update service.cpp --- mllib-dal/src/main/native/service.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mllib-dal/src/main/native/service.cpp b/mllib-dal/src/main/native/service.cpp index 96e41e0a2..7a1084d5a 100644 --- a/mllib-dal/src/main/native/service.cpp +++ b/mllib-dal/src/main/native/service.cpp @@ -247,9 +247,8 @@ HomogenTablePtr createHomogenTableWithArrayPtr(size_t pNumTabData, double *htableArray = reinterpret_cast(pNumTabData); auto data = sycl::malloc_shared(numRows * numClos, queue); queue.memcpy(data, htableArray, sizeof(double) * numRows * numClos).wait(); - HomogenTablePtr tablePtr = std::make_shared( + return std::make_shared( queue, data, numRows, numClos, - detail::make_default_delete(queue)); - return tablePtr; + detail::make_default_delete(queue)); } #endif