We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c1b9ed commit 737a959Copy full SHA for 737a959
1 file changed
source/Main.java
@@ -88,6 +88,19 @@ public Main()
88
{
89
ShutdownHooks.register();
90
91
+ // Reassemble PyTorch native JAR from split parts if needed
92
+ java.io.File pytorchJar = new java.io.File("jars/djl/pytorch-native-cpu-2.5.1-linux-x86_64.jar");
93
+ if (!pytorchJar.exists()) {
94
+ try {
95
+ String os = System.getProperty("os.name").toLowerCase();
96
+ ProcessBuilder pb = os.contains("win")
97
+ ? new ProcessBuilder("cmd", "/c", "jars\\djl\\reassemble-pytorch.bat")
98
+ : new ProcessBuilder("bash", "jars/djl/reassemble-pytorch.sh");
99
+ pb.inheritIO();
100
+ pb.start().waitFor();
101
+ } catch (Exception e) { e.printStackTrace(); }
102
+ }
103
+
104
database.N21AuthConfig.get().ensureMysqlRunning();
105
106
CommonRails.printSystemComponent(this, this.hashCode(),
0 commit comments