Skip to content

Commit d5713c6

Browse files
committed
dnn(slice): disable buggy OCV/OCL implementation
1 parent 99c4b76 commit d5713c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/dnn/src/layers/slice_layer.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ class SliceLayerImpl : public SliceLayer
202202
#ifdef HAVE_OPENCL
203203
bool forward_ocl(InputArrayOfArrays inputs_, OutputArrayOfArrays outputs_, OutputArrayOfArrays internals_)
204204
{
205+
#if 1
206+
// TODO fix that (brokes YOLOv4-tiny)
207+
return false;
208+
#else
205209
std::vector<UMat> inputs;
206210
std::vector<UMat> outputs;
207211
@@ -244,7 +248,8 @@ class SliceLayerImpl : public SliceLayer
244248
}
245249
246250
return true;
247-
}
251+
#endif
252+
}
248253
#endif
249254

250255
void forward(InputArrayOfArrays inputs_arr, OutputArrayOfArrays outputs_arr, OutputArrayOfArrays internals_arr) CV_OVERRIDE

0 commit comments

Comments
 (0)