support using xnnpack as execution provider (#612)

This commit is contained in:
Fangjun Kuang
2024-02-28 17:32:48 +08:00
committed by GitHub
parent 87a7030c08
commit 0cb6d1b474
6 changed files with 29 additions and 11 deletions

View File

@@ -13,9 +13,10 @@ namespace sherpa_onnx {
// https://github.com/microsoft/onnxruntime/blob/main/java/src/main/java/ai/onnxruntime/OrtProvider.java
// for a list of available providers
enum class Provider {
kCPU = 0, // CPUExecutionProvider
kCUDA = 1, // CUDAExecutionProvider
kCoreML = 2, // CoreMLExecutionProvider
kCPU = 0, // CPUExecutionProvider
kCUDA = 1, // CUDAExecutionProvider
kCoreML = 2, // CoreMLExecutionProvider
kXnnpack = 3, // XnnpackExecutionProvider
};
/**