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:
committed by
StefaniaHergane
parent
6f74546488
commit
67bece1d99
@@ -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>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user