diff --git a/onnxruntime/core/providers/webnn/builders/impl/conv_op_builder.cc b/onnxruntime/core/providers/webnn/builders/impl/conv_op_builder.cc index 5bd0ab47f84f1..123a9cc016515 100644 --- a/onnxruntime/core/providers/webnn/builders/impl/conv_op_builder.cc +++ b/onnxruntime/core/providers/webnn/builders/impl/conv_op_builder.cc @@ -276,10 +276,10 @@ Status ConvOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const N options.set("filterLayout", emscripten::val("ihwo")); } } - emscripten::val filter = model_builder.GetOperand(weight); - if (op_type == "Conv") + emscripten::val filter = model_builder.GetOperand(weight_name); + if (op_type == "Conv") { output = model_builder.GetBuilder().call("conv2d", input, filter, options); - else { + } else { emscripten::val x_zero_point = emscripten::val::null(); emscripten::val w_zero_point = emscripten::val::null(); if (input_defs.size() >= 3) { diff --git a/onnxruntime/core/providers/webnn/builders/impl/dequantizeLinear_op_builder.cc b/onnxruntime/core/providers/webnn/builders/impl/dequantizeLinear_op_builder.cc index 1472409f003fd..66d502a4e6727 100644 --- a/onnxruntime/core/providers/webnn/builders/impl/dequantizeLinear_op_builder.cc +++ b/onnxruntime/core/providers/webnn/builders/impl/dequantizeLinear_op_builder.cc @@ -10,7 +10,7 @@ #include "core/providers/webnn/builders/model_builder.h" #include "core/providers/webnn/builders/op_builder_factory.h" -#include "base_op_builder.h" +#include "core/providers/webnn/builders/impl/base_op_builder.h" namespace onnxruntime { namespace webnn { diff --git a/onnxruntime/core/providers/webnn/builders/impl/dynamicQuantizeLinear_op_builder.cc b/onnxruntime/core/providers/webnn/builders/impl/dynamicQuantizeLinear_op_builder.cc index 2b550a1ac6ecf..3b5f64584b828 100644 --- a/onnxruntime/core/providers/webnn/builders/impl/dynamicQuantizeLinear_op_builder.cc +++ b/onnxruntime/core/providers/webnn/builders/impl/dynamicQuantizeLinear_op_builder.cc @@ -10,7 +10,7 @@ #include "core/providers/webnn/builders/model_builder.h" #include "core/providers/webnn/builders/op_builder_factory.h" -#include "base_op_builder.h" +#include "core/providers/webnn/builders/impl/base_op_builder.h" namespace onnxruntime { namespace webnn { diff --git a/onnxruntime/core/providers/webnn/builders/model_builder.cc b/onnxruntime/core/providers/webnn/builders/model_builder.cc index 9d73c7d19cc76..7101fa7147aab 100644 --- a/onnxruntime/core/providers/webnn/builders/model_builder.cc +++ b/onnxruntime/core/providers/webnn/builders/model_builder.cc @@ -14,6 +14,8 @@ #include "core/providers/common.h" #include "core/providers/shared/utils/utils.h" +#include + namespace onnxruntime { namespace webnn {