Add API to get version information (#2309)

This commit is contained in:
Fangjun Kuang authored and GitHub committed 2025-06-25 00:22:21 +08:00
1 parent 7f2145539d
commit bda427f4b2
169 files changed
+1480 -12

No files matched your search

+11
View 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());
}
}