support using xnnpack as execution provider (#612)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user