You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the constructor "new Context(int dtype)" to get information about installed GPU devices. However, in current version this constructor is deprecated. How can I replace this call in modern API?
The text was updated successfully, but these errors were encountered:
You're talking about OpenCV, right? Context.create(String), Context.getDefault(), or Context.fromDevice() don't look deprecated, so I guess we should be using one of those. But the available sample suggests attachContext() is the recommended way of going about that: https://github.com/opencv/opencv/blob/4.x/samples/opencl/opencl-opencv-interop.cpp#L641
I used the constructor "new Context(int dtype)" to get information about installed GPU devices. However, in current version this constructor is deprecated. How can I replace this call in modern API?
The text was updated successfully, but these errors were encountered: