mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-13 22:41:03 +08:00
Add API to get version information (#2309)
This commit is contained in:
1 parent
7f2145539d
commit
bda427f4b2
169 files changed
+1480
-12
No files matched your search
@@ -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