Skip to content

Commit

Permalink
Update js_execution_provider.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn authored Oct 3, 2023
1 parent d646423 commit 4476a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/providers/js/js_execution_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,8 @@ std::vector<std::unique_ptr<ComputeCapability>> JsExecutionProvider::GetCapabili
continue;
}
candidates.push_back(node.Index());
if(node.Domain() != 'com.ms.internal.nhwc'){
// If the node was added by layout transformer, do not move it to CPU
if(node.Domain() != "com.ms.internal.nhwc"){
tenative_candidates.push_back(node.Index());
}
}
Expand Down

0 comments on commit 4476a66

Please sign in to comment.