MCPcopy Create free account
hub / github.com/baidu/lac / main

Method main

java/LacMulti.java:16–36  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

14 }
15
16 public static void main(String[] args) {
17
18 // 默认模型路径
19 String model_path = new String("./lac_model");
20 if (args.length < 2){
21 System.out.println("Usage: "+argv[0]+ " + model_dir + thread_num");
22 System.exit(1);
23 }
24
25 model_path = args[0];
26 int thread_num = Integer.parseInt(args[1]);
27
28 LAC lac = new LAC(model_path);
29 LacRunnable lacrunner = new LacRunnable(lac);
30
31 Thread threads[]=new Thread[thread_num];
32 for (int i = 0; i< thread_num; i++){
33 threads[i] = new Thread(lacrunner);
34 threads[i].start();
35 }
36 }
37
38}
39

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected