C++ API for speaker diarization (#1396)

This commit is contained in:
Fangjun Kuang
2024-10-09 12:01:20 +08:00
committed by GitHub
parent 70165cb42d
commit 59407edcad
39 changed files with 1652 additions and 108 deletions

View File

@@ -61,8 +61,10 @@ void TensorrtConfig::Register(ParseOptions *po) {
bool TensorrtConfig::Validate() const {
if (trt_max_workspace_size < 0) {
SHERPA_ONNX_LOGE("trt_max_workspace_size: %ld is not valid.",
trt_max_workspace_size);
std::ostringstream os;
os << "trt_max_workspace_size: " << trt_max_workspace_size
<< " is not valid.";
SHERPA_ONNX_LOGE("%s", os.str().c_str());
return false;
}
if (trt_max_partition_iterations < 0) {