22 lines
562 B
C
22 lines
562 B
C
|
|
// sherpa-onnx/csrc/session.h
|
||
|
|
//
|
||
|
|
// Copyright (c) 2023 Xiaomi Corporation
|
||
|
|
|
||
|
|
#ifndef SHERPA_ONNX_CSRC_SESSION_H_
|
||
|
|
#define SHERPA_ONNX_CSRC_SESSION_H_
|
||
|
|
|
||
|
|
#include "onnxruntime_cxx_api.h" // NOLINT
|
||
|
|
#include "sherpa-onnx/csrc/offline-model-config.h"
|
||
|
|
#include "sherpa-onnx/csrc/online-transducer-model-config.h"
|
||
|
|
|
||
|
|
namespace sherpa_onnx {
|
||
|
|
|
||
|
|
Ort::SessionOptions GetSessionOptions(
|
||
|
|
const OnlineTransducerModelConfig &config);
|
||
|
|
|
||
|
|
Ort::SessionOptions GetSessionOptions(const OfflineModelConfig &config);
|
||
|
|
|
||
|
|
} // namespace sherpa_onnx
|
||
|
|
|
||
|
|
#endif // SHERPA_ONNX_CSRC_SESSION_H_
|