Skip to content

Commit

Permalink
[WebNN EP] Rename op logicalNot to not (microsoft#18936)
Browse files Browse the repository at this point in the history
WebNN latest spec uses the name 'not'.
  • Loading branch information
Honry authored Dec 29, 2023
1 parent 44584c3 commit a3626b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion onnxruntime/core/providers/webnn/builders/helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static const InlinedHashMap<std::string, WebnnOpInfo> op_map = {
{"Min", {"min", true}},
{"Mul", {"mul", true}},
{"Neg", {"neg", true}},
{"Not", {"logicalNot", false}},
{"Not", {"not", false}},
{"Pad", {"pad", true}},
{"Pow", {"pow", false}},
{"PRelu", {"prelu", true}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Status UnaryOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const
} else if (op_type == "Neg") {
output = model_builder.GetBuilder().call<emscripten::val>("neg", input);
} else if (op_type == "Not") {
output = model_builder.GetBuilder().call<emscripten::val>("logicalNot", input);
output = model_builder.GetBuilder().call<emscripten::val>("not", input);
} else if (op_type == "Reciprocal") {
output = model_builder.GetBuilder().call<emscripten::val>("reciprocal", input);
} else if (op_type == "Sin") {
Expand Down

0 comments on commit a3626b6

Please sign in to comment.