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

@@ -20,6 +20,8 @@ Provider StringToProvider(std::string s) {
return Provider::kCUDA;
} else if (s == "coreml") {
return Provider::kCoreML;
} else if (s == "xnnpack") {
return Provider::kXnnpack;
} else {
SHERPA_ONNX_LOGE("Unsupported string: %s. Fallback to cpu", s.c_str());
return Provider::kCPU;