1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-17 14:05:25 +03:00
aports/testing/openvino/deprecated-copy.patch
Dennis Krupenik bf01c1d180 testing/openvino: new aport
Deep Learning Deployment Toolkit
https://github.com/openvinotoolkit/openvino

Co-authored-by: Leo <thinkabit.ukim@gmail.com>
2020-09-09 05:18:05 +00:00

14 lines
629 B
Diff

Fix error: implicitly-declared 'constexpr ...' is deprecated [-Werror=deprecated-copy]
---
--- a/inference-engine/thirdparty/clDNN/src/gpu/memory_gpu.cpp
+++ b/inference-engine/thirdparty/clDNN/src/gpu/memory_gpu.cpp
@@ -127,8 +127,7 @@
CLDNN_ERROR_MESSAGE("2D image allocation", "unsupported image type!");
}
- cl::ImageFormat imageFormat(order, type);
- _buffer = cl::Image2D(_context->context(), CL_MEM_READ_WRITE, imageFormat, _width, _height, 0);
+ _buffer = cl::Image2D(_context->context(), CL_MEM_READ_WRITE, cl::ImageFormat(order, type), _width, _height, 0);
if (reset) zero_image();
}