cuda: add support for convertFp16 function

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2024-08-19 12:42:23 +02:00
committed by Ron Evans
parent 774ddceced
commit e4e43b1d07
4 changed files with 40 additions and 0 deletions

View File

@@ -68,6 +68,10 @@ void GpuMat_ConvertTo(GpuMat m, GpuMat dst, int type, Stream s) {
m->convertTo(*dst, type, *s);
}
void GpuMat_ConvertFp16(GpuMat m, GpuMat dst) {
cv::cuda::convertFp16(*m, *dst);
}
void GpuMat_CopyTo(GpuMat m, GpuMat dst, Stream s) {
if (s == NULL) {
m->copyTo(*dst);