Revert "[WebNN EP] Rename op logicalNot to not" (#18997)

Reverts microsoft/onnxruntime#18936

WebNN spec is discussing using the `logicalNot` name at
https://github.com/webmachinelearning/webnn/issues/496, and the Chromium
implementation has suspended the renaming change. For consistent, we
should keep using `logicalNot` in WebNN EP util it is finalized.
This commit is contained in:
Wanming Lin 2024-01-06 00:15:50 +08:00 committed by GitHub
parent e155c66b4a
commit 7f0aac0d8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -179,7 +179,7 @@ static const InlinedHashMap<std::string, WebnnOpInfo> op_map = {
{"Min", {"min", true}},
{"Mul", {"mul", true}},
{"Neg", {"neg", true}},
{"Not", {"not", false}},
{"Not", {"logicalNot", false}},
{"Pad", {"pad", true}},
{"Pow", {"pow", false}},
{"PRelu", {"prelu", true}},

View file

@ -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>("not", input);
output = model_builder.GetBuilder().call<emscripten::val>("logicalNot", input);
} else if (op_type == "Reciprocal") {
output = model_builder.GetBuilder().call<emscripten::val>("reciprocal", input);
} else if (op_type == "Sin") {