Closed renshuo closed 3 years ago
We provide both auto detection jar and platform specific jar.
It's up to you to choose which which classifier in your gradle or sbt file. We are doing exactly the same as you describe in some of our own project: https://github.com/deepjavalibrary/djl-demo/blob/master/canary/build.gradle#L67-L73
We only download the libtorch.so file once, once it cached, we won't download it again. If your network is broken, you will have the same problem to download platform specific jar file.
However this may not work for many use cases:
Get it, thanks for your reply. I get more knowledge and experience.
I meet this exception because of the poor net connection:
So, why not use sbt or gradle to resolve the dependence?
Here is a example with OS detect.
I think djl can use same method to resolve engine dependence for better user experience.