diff --git a/onnxruntime/core/providers/webgpu/math/matmul.cc b/onnxruntime/core/providers/webgpu/math/matmul.cc index 512a3d05c09eb..6b0600fa03d1d 100644 --- a/onnxruntime/core/providers/webgpu/math/matmul.cc +++ b/onnxruntime/core/providers/webgpu/math/matmul.cc @@ -164,7 +164,7 @@ Status MatMul::ComputeInternal(ComputeContext& context) const { inputs[1] = b; if (has_bias) { const auto* bias = context.Input(2); - inputs.push_back(bias); + inputs[2] = bias; } if (intel::CanApplyMatMulIntel(context, helper.M(), helper.N(), helper.K())) {