Add API to get version information (#2309)
This commit is contained in:
11
java-api-examples/VersionTest.java
Normal file
11
java-api-examples/VersionTest.java
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright 2025 Xiaomi Corporation
|
||||
|
||||
import com.k2fsa.sherpa.onnx.*;
|
||||
|
||||
public class VersionTest {
|
||||
public static void main(String[] args) {
|
||||
System.out.printf("sherpa-onnx version: %s\n", VersionInfo.getVersion());
|
||||
System.out.printf("sherpa-onnx gitSha1: %s\n", VersionInfo.getGitSha1());
|
||||
System.out.printf("sherpa-onnx gitDate: %s\n", VersionInfo.getGitDate());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user