mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Merge pull request #28029 from StefaniaHergane:hs/govbackend_update_ov_tensor_data_usage
Update usage of ov::Tensor::data in govbackend
This commit is contained in:
@@ -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