Fixed Halide's copy_to_device invocation

This commit is contained in:
Dmitry Kurtaev 2017-11-01 14:01:54 +03:00
parent bc348eb8ab
commit 14af2a0c0c

View File

@ -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");