Minor fixes for rknn (#1925)

This commit is contained in:
Fangjun Kuang
2025-02-26 16:26:18 +08:00
committed by GitHub
parent 2f9a2b20a1
commit 82cb8a5dc3
7 changed files with 46 additions and 5 deletions

View File

@@ -463,8 +463,10 @@ class OnlineZipformerTransducerModelRknn::Impl {
}
auto meta = Parse(custom_string);
for (const auto &p : meta) {
SHERPA_ONNX_LOGE("%s: %s", p.first.c_str(), p.second.c_str());
if (config_.debug) {
for (const auto &p : meta) {
SHERPA_ONNX_LOGE("%s: %s", p.first.c_str(), p.second.c_str());
}
}
if (meta.count("encoder_dims")) {