How can I trigger DJL to download engine's C++ library? #2183
-
I'm trying to prepare everything while building docker image, how can I prepare native library for my app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can bundle the native library when you build your java project. We provide maven package for each platform to make it easy to distribute your application (or build docker image), for example, here is the document about how to install PyTorch engine for Linux CPU: https://docs.djl.ai/master/engines/pytorch/pytorch-engine/index.html#linux-cpu You can also take a look our demo project how to package your application: https://github.com/deepjavalibrary/djl-demo/tree/master/development/fatjar |
Beta Was this translation helpful? Give feedback.
You can bundle the native library when you build your java project. We provide maven package for each platform to make it easy to distribute your application (or build docker image), for example, here is the document about how to install PyTorch engine for Linux CPU: https://docs.djl.ai/master/engines/pytorch/pytorch-engine/index.html#linux-cpu
You can also take a look our demo project how to package your application: https://github.com/deepjavalibrary/djl-demo/tree/master/development/fatjar