From 14af2a0c0cae13c2d87c23503adc3d303b12ba5c Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Wed, 1 Nov 2017 14:01:54 +0300 Subject: [PATCH] Fixed Halide's copy_to_device invocation --- modules/dnn/src/op_halide.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dnn/src/op_halide.cpp b/modules/dnn/src/op_halide.cpp index a2d4309194..9287c496d8 100644 --- a/modules/dnn/src/op_halide.cpp +++ b/modules/dnn/src/op_halide.cpp @@ -105,7 +105,7 @@ HalideBackendWrapper::HalideBackendWrapper(int targetId, const cv::Mat& m) { Halide::Target t = Halide::get_host_target(); t.set_feature(Halide::Target::OpenCL); - buffer.copy_to_device(get_default_device_interface_for_target(t)); + buffer.copy_to_device(t); } else CV_Error(Error::StsNotImplemented, "Unknown target identifier");