djl icon indicating copy to clipboard operation
djl copied to clipboard

关于打包

Open ling976 opened this issue 2 years ago • 1 comments

怎么整体打包

 在源码中大量使用了native方法,如果需要将项目打包放到另一台电脑上使用,怎么确定需要拷贝哪些动态链接库.然后那一台电脑需要安装相应的Python环境和Python依赖库吗?需要安装cuda环境吗

ling976 avatar Apr 19 '23 07:04 ling976

If you have network access, you don't need package native library, DJL will download only required library at runtime for your os. If you know your target deploy environment, you can package a fat jar. See this demo: https://github.com/deepjavalibrary/djl-demo/tree/master/development/fatjar

You don't need python, but if you use GPU, you have to install CUDA before using DJL.

frankfliu avatar Apr 19 '23 14:04 frankfliu