bytedeco/javacpp

How to replace deprecated "new Context(Device.TYPE_GPU)"

Open

#645 opened on Dec 15, 2022

 (5 comments) (0 reactions) (0 assignees)Java (620 forks)batch import
help wantedquestion

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (PR metrics pending)

Description

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?

Contributor guide