mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
Rename op elementwiseIf to where (#18657)
WebNN latest spec uses `where`.
This commit is contained in:
parent
9768a727e1
commit
c4b8120c5b
2 changed files with 2 additions and 2 deletions
|
|
@ -212,7 +212,7 @@ static const InlinedHashMap<std::string, WebnnOpInfo> op_map = {
|
|||
{"Tanh", {"tanh", true}},
|
||||
{"Transpose", {"transpose", true}},
|
||||
{"Unsqueeze", {"reshape", true}},
|
||||
{"Where", {"elementwiseIf", false}},
|
||||
{"Where", {"where", false}},
|
||||
};
|
||||
|
||||
inline bool CheckSingleOp(const std::string& op_type, const emscripten::val& wnn_builder_,
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ Status TernaryOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, cons
|
|||
emscripten::val input2 = model_builder.GetOperand(node.InputDefs()[2]->Name());
|
||||
emscripten::val output = emscripten::val::object();
|
||||
if (op_type == "Where") {
|
||||
output = model_builder.GetBuilder().call<emscripten::val>("elementwiseIf", input0, input1, input2);
|
||||
output = model_builder.GetBuilder().call<emscripten::val>("where", input0, input1, input2);
|
||||
} else {
|
||||
return ORT_MAKE_STATUS(ONNXRUNTIME, INVALID_ARGUMENT,
|
||||
"TernaryOpBuilder::AddToModelBuilderImpl, unknown op: ", op_type);
|
||||
|
|
|
|||
Loading…
Reference in a new issue