Skip to content

Commit e94153e

Browse files
authored
[WebGPU] bug fix related to bounds checking in conv kernel (microsoft#26268)
Fixes chatterbox model for transformers.js
1 parent 1d0ee39 commit e94153e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onnxruntime/core/providers/webgpu/nn/conv2d_mm_webgpu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ std::string Conv2dMMProgram::Conv2dCommonSnippet(const ShaderVariableHelper& x,
103103
}
104104
} else {
105105
sample_w << "let col = colIn * " << inner_element_size_w << ";\n"
106-
<< "if (row < i32(uniforms.dim_inner) && col < i32(uniforms.dim_b_outer)) {\n"
106+
<< "if (row < i32(uniforms.dim_inner) && col < i32(uniforms.dim_a_outer)) {\n"
107107
<< " " << get_w_snippet(inner_element_size_w) << "\n"
108108
<< "}\n"
109109
<< "return " << TypeSnippet(inner_element_size_w, data_type) << "(0.0);\n";

0 commit comments

Comments
 (0)