0
0
mirror of https://github.com/opencv/opencv.git synced 2026-01-18 17:21:42 +01:00

Update usage of ov::Tensor::data in govbackend.cpp

Signed-off-by: StefaniaHergane <stefania-persida.hergane@intel.com>
This commit is contained in:
Stefania Hergane
2025-11-17 12:28:10 +02:00
committed by StefaniaHergane
parent 6f74546488
commit 67bece1d99

View File

@@ -185,7 +185,7 @@ static void copyFromOV(const ov::Tensor &tensor, cv::Mat &mat) {
mat.ptr<int>(),
total);
} else {
std::copy_n(reinterpret_cast<uint8_t*>(tensor.data()),
std::copy_n(reinterpret_cast<const uint8_t*>(tensor.data()),
tensor.get_byte_size(),
mat.ptr<uint8_t>());
}