Skip to content

Commit

Permalink
Fix WebNN clip builder
Browse files Browse the repository at this point in the history
  • Loading branch information
skottmckay committed Feb 4, 2024
1 parent 90a249d commit 9997931
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Status ClipOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder,
const auto& output_name = node.OutputDefs()[0]->Name();
emscripten::val options = emscripten::val::object();
float minValue, maxValue;
ORT_RETURN_IF_NOT(GetClipMinMax(model_builder.GetInitializerTensors(), node, minValue, maxValue, logger),
ORT_RETURN_IF_NOT(GetClipMinMax(model_builder.GetGraphViewer(), node, minValue, maxValue, logger),
"GetClipMinMax failed");
options.set("minValue", minValue);
options.set("maxValue", maxValue);
Expand Down

0 comments on commit 9997931

Please sign in to comment.