Support CoreML for macOS (#151)
This commit is contained in:
21
sherpa-onnx/csrc/session.h
Normal file
21
sherpa-onnx/csrc/session.h
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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_
|
||||
Reference in New Issue
Block a user