Add API to get version information (#2309)
This commit is contained in:
24
sherpa-onnx/csrc/version.cc
Normal file
24
sherpa-onnx/csrc/version.cc
Normal file
@@ -0,0 +1,24 @@
|
||||
// sherpa-onnx/csrc/version.h
|
||||
//
|
||||
// Copyright 2025 Xiaomi Corporation
|
||||
|
||||
#include "sherpa-onnx/csrc/version.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
const char *GetGitDate() {
|
||||
static const char *date = "Fri Jun 20 11:22:52 2025";
|
||||
return date;
|
||||
}
|
||||
|
||||
const char *GetGitSha1() {
|
||||
static const char *sha1 = "6982b86c";
|
||||
return sha1;
|
||||
}
|
||||
|
||||
const char *GetVersionStr() {
|
||||
static const char *version = "1.12.1";
|
||||
return version;
|
||||
}
|
||||
|
||||
} // namespace sherpa_onnx
|
||||
Reference in New Issue
Block a user