From 14a3da36432a89be094757677e6e7dc093fdf359 Mon Sep 17 00:00:00 2001
From: Chong Zhang <iriszhangchong@gmail.com>
Date: 星期五, 05 五月 2023 13:01:25 +0800
Subject: [PATCH] Update postprocess_utils.py
---
funasr/runtime/onnxruntime/src/ct-transformer.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/ct-transformer.cpp b/funasr/runtime/onnxruntime/src/ct-transformer.cpp
index 39ab2bc..ecde636 100644
--- a/funasr/runtime/onnxruntime/src/ct-transformer.cpp
+++ b/funasr/runtime/onnxruntime/src/ct-transformer.cpp
@@ -40,7 +40,6 @@
m_tokenizer.OpenYaml(punc_config.c_str());
}
-
CTTransformer::~CTTransformer()
{
}
@@ -180,10 +179,9 @@
}
catch (std::exception const &e)
{
- printf(e.what());
+ LOG(ERROR) << "Error when run punc onnx forword: " << (e.what());
+ exit(0);
}
return punction;
}
-
-
--
Gitblit v1.9.1