bytedeco/javacpp

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

Open

#645 opened on Dec 15, 2022

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

Repository metrics

Stars
 (4,279 stars)
PR merge metrics
 (No merged PRs in 30d)

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