mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
[WebNN EP] Fixed bug in op checking (#18638)
This commit is contained in:
parent
73d9b03509
commit
c7732a78d7
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ inline bool CheckSingleOp(const std::string& op_type, const emscripten::val& wnn
|
|||
// fall back early to the ORT CPU EP rather than fail in the WebNN "cpu" deviceType.
|
||||
// This is a workaround because the op may be included in MLGraphBuilder for DirectML
|
||||
// backend but without XNNPack implementation in Chromium.
|
||||
if (!op_map.find(op_type)->second.isCpuSupported) {
|
||||
if (!op_map.find(op_type)->second.isCpuSupported && device_type == WebnnDeviceType::CPU) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue