rnnlm model inference supports num_threads setting (#169)
Co-authored-by: cuidongcai1035 <cuidongcai1035@wezhuiyi.com>
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "onnxruntime_cxx_api.h" // NOLINT
|
||||
#include "sherpa-onnx/csrc/hypothesis.h"
|
||||
#include "sherpa-onnx/csrc/offline-lm-config.h"
|
||||
#include "sherpa-onnx/csrc/offline-recognizer.h"
|
||||
|
||||
namespace sherpa_onnx {
|
||||
|
||||
@@ -18,7 +18,8 @@ class OfflineLM {
|
||||
public:
|
||||
virtual ~OfflineLM() = default;
|
||||
|
||||
static std::unique_ptr<OfflineLM> Create(const OfflineLMConfig &config);
|
||||
static std::unique_ptr<OfflineLM> Create(
|
||||
const OfflineRecognizerConfig &config);
|
||||
|
||||
/** Rescore a batch of sentences.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user