mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
dnn(slice): disable buggy OCV/OCL implementation
This commit is contained in:
parent
99c4b76a6d
commit
d5713c657b
@ -202,6 +202,10 @@ public:
|
|||||||
#ifdef HAVE_OPENCL
|
#ifdef HAVE_OPENCL
|
||||||
bool forward_ocl(InputArrayOfArrays inputs_, OutputArrayOfArrays outputs_, OutputArrayOfArrays internals_)
|
bool forward_ocl(InputArrayOfArrays inputs_, OutputArrayOfArrays outputs_, OutputArrayOfArrays internals_)
|
||||||
{
|
{
|
||||||
|
#if 1
|
||||||
|
// TODO fix that (brokes YOLOv4-tiny)
|
||||||
|
return false;
|
||||||
|
#else
|
||||||
std::vector<UMat> inputs;
|
std::vector<UMat> inputs;
|
||||||
std::vector<UMat> outputs;
|
std::vector<UMat> outputs;
|
||||||
|
|
||||||
@ -244,7 +248,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
#endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void forward(InputArrayOfArrays inputs_arr, OutputArrayOfArrays outputs_arr, OutputArrayOfArrays internals_arr) CV_OVERRIDE
|
void forward(InputArrayOfArrays inputs_arr, OutputArrayOfArrays outputs_arr, OutputArrayOfArrays internals_arr) CV_OVERRIDE
|
||||||
|
Loading…
Reference in New Issue
Block a user