Skip to content

Commit 737a959

Browse files
committed
Executive System Touch M5+ 75
1 parent 9c1b9ed commit 737a959

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

source/Main.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,19 @@ public Main()
8888
{
8989
ShutdownHooks.register();
9090

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+
91104
database.N21AuthConfig.get().ensureMysqlRunning();
92105

93106
CommonRails.printSystemComponent(this, this.hashCode(),

0 commit comments

Comments
 (0)