Skip to content

Commit e28d224

Browse files
committed
drop convertFp16 in favor of cv::Mat::convertTo.
1 parent 3cc5923 commit e28d224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cudev/test/test_cvt.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ public:
102102

103103
// Fp32 -> Fp16
104104
cv::cuda::convertFp16(g_src, g_dst);
105-
cv::convertFp16(src, dst);
105+
src.convertTo(dst, CV_16F);
106106
// Fp16 -> Fp32
107107
cv::cuda::convertFp16(g_dst.clone(), g_dst);
108-
cv::convertFp16(dst, ref);
108+
dst.convertTo(ref, CV_32F);
109109

110110
g_dst.download(dst);
111111
EXPECT_MAT_NEAR(dst, ref, 0.0);

0 commit comments

Comments
 (0)