Skip to content

Commit

Permalink
rename cv::float16_t to cv::fp16_t
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuentau committed Mar 15, 2024
1 parent 6b5142f commit c257a4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/cudev/test/test_nd.cu
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public:

static void doTest3(const SizeArray& size)
{
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
if (std::is_same<CnType, fp16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
return;

const MatType gold = RandomMat(size);
Expand Down Expand Up @@ -140,7 +140,7 @@ public:

static void doTest4(const SizeArray& size)
{
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
if (std::is_same<CnType, fp16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
return;

const MatType gold = RandomMat(size);
Expand Down Expand Up @@ -169,7 +169,7 @@ public:

static void doTest5(const SizeArray& size)
{
if (std::is_same<CnType, float16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
if (std::is_same<CnType, fp16_t>::value) // GpuMat::convertTo is not implemented for CV_16F
return;

const MatType gold = RandomMat(size);
Expand Down Expand Up @@ -204,7 +204,7 @@ using ElemTypes = ::testing::Types<
Vec<int, 1>, Vec<int, 2>, Vec<int, 3>, Vec<int, 4>, // CV_32S
Vec<float, 1>, Vec<float, 2>, Vec<float, 3>, Vec<float, 4>, // CV_32F
Vec<double, 1>, Vec<double, 2>, Vec<double, 3>, Vec<double, 4>, //CV_64F
Vec<float16_t, 1>, Vec<float16_t, 2>, Vec<float16_t, 3>, Vec<float16_t, 4> // CV_16F
Vec<fp16_t, 1>, Vec<fp16_t, 2>, Vec<fp16_t, 3>, Vec<fp16_t, 4> // CV_16F
>;

using SizeArray = GpuMatND::SizeArray;
Expand Down

0 comments on commit c257a4d

Please sign in to comment.