Skip to content

Commit 56869b7

Browse files
authored
rename cv::float16_t to cv::hfloat (#3697)
* rename cv::float16_t to cv::fp16_t * fp16_t -> hfloat
1 parent b42682b commit 56869b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/cudev/test/test_nd.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public:
101101

102102
static void doTest3(const SizeArray& size)
103103
{
104-
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
104+
if (std::is_same<CnType, hfloat>::value) // GpuMat::convertTo is not implemented for CV_16F
105105
return;
106106

107107
const MatType gold = RandomMat(size);
@@ -140,7 +140,7 @@ public:
140140

141141
static void doTest4(const SizeArray& size)
142142
{
143-
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
143+
if (std::is_same<CnType, hfloat>::value) // GpuMat::convertTo is not implemented for CV_16F
144144
return;
145145

146146
const MatType gold = RandomMat(size);
@@ -169,7 +169,7 @@ public:
169169

170170
static void doTest5(const SizeArray& size)
171171
{
172-
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
172+
if (std::is_same<CnType, hfloat>::value) // GpuMat::convertTo is not implemented for CV_16F
173173
return;
174174

175175
const MatType gold = RandomMat(size);
@@ -204,7 +204,7 @@ using ElemTypes = ::testing::Types<
204204
Vec<int, 1>, Vec<int, 2>, Vec<int, 3>, Vec<int, 4>, // CV_32S
205205
Vec<float, 1>, Vec<float, 2>, Vec<float, 3>, Vec<float, 4>, // CV_32F
206206
Vec<double, 1>, Vec<double, 2>, Vec<double, 3>, Vec<double, 4>, //CV_64F
207-
Vec<float16_t, 1>, Vec<float16_t, 2>, Vec<float16_t, 3>, Vec<float16_t, 4> // CV_16F
207+
Vec<hfloat, 1>, Vec<hfloat, 2>, Vec<hfloat, 3>, Vec<hfloat, 4> // CV_16F
208208
>;
209209

210210
using SizeArray = GpuMatND::SizeArray;

0 commit comments

Comments
 (0)