Fix incorrect use of ASSERT (#19838)

This commit is contained in:
Vitaliy Urusovskij 2023-09-14 17:34:14 +04:00 committed by GitHub
parent 35a0706dff
commit 53fef5f558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ const cl::Context& ocl_engine::get_cl_context() const {
const cl::Device& ocl_engine::get_cl_device() const {
auto cl_device = std::dynamic_pointer_cast<ocl_device>(_device);
OPENVINO_ASSERT("cl_device, [GPU] Invalid device type for ocl_engine");
OPENVINO_ASSERT(cl_device, "[GPU] Invalid device type for ocl_engine");
return cl_device->get_device();
}