File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 );
@@ -128,7 +128,7 @@ public:
128128
129129 // Fp32 -> Fp16
130130 cv::cuda::convertFp16 (g_src, g_dst);
131- cv::convertFp16 ( src, ref );
131+ src. convertTo (ref, CV_16F );
132132
133133 g_dst.download (dst);
134134 EXPECT_MAT_NEAR (dst, ref, 0.0 );
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ cv.divide
77cv.scaleAdd
88cv.addWeighted
99cv.convertScaleAbs
10- cv.convertFp16
1110cv.LUT
1211cv.sum
1312cv.countNonZero
You can’t perform that action at this time.
0 commit comments