mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-11-10 21:11:03 +08:00
Add API to get onnxruntime version. (#3810)
This commit is contained in:
1 parent
0a03d8546f
commit
ccdaef8bba
57 files changed
+411
-2
No files matched your search
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (c) 2026 Xiaomi Corporation
|
||||
|
||||
import sherpa_onnx
|
||||
|
||||
|
||||
def main():
|
||||
print(f"sherpa-onnx version: {sherpa_onnx.version}")
|
||||
print(f"sherpa-onnx git sha1: {sherpa_onnx.git_sha1}")
|
||||
print(f"sherpa-onnx git date: {sherpa_onnx.git_date}")
|
||||
print(f"onnxruntime version: {sherpa_onnx.onnxruntime_version}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in new issue
Block a user