[WebNN EP] Rename op logicalNot to not (#18936)

WebNN latest spec uses the name 'not'.
This commit is contained in:
Wanming Lin 2023-12-29 09:31:37 +08:00 committed by GitHub
parent 44584c3ebe
commit a3626b67b3
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", {"logicalNot", false}},
{"Not", {"not", 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>("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") {