We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e24d17 commit 55b3fb5Copy full SHA for 55b3fb5
ggml/src/ggml-vulkan/vulkan-shaders/conv2d_mm.comp
@@ -288,7 +288,7 @@ void main() {
288
min(max(W_idx + H_idx * p.nb11 + Cin_idx_b * p.nb12 + N_idx * p.nb13, 0), p.Cin * p.N * p.W * p.H - 1);
289
float val = src_data[src_idx];
290
if (CRS_idx_b >= CRS || NPQ_idx >= NPQ
291
- || int32_t(H_idx) < 0 || H_idx >= p.H || int32_t(W_idx) < 0 || W_idx >= p.W
+ || H_idx >= p.H || W_idx >= p.W // Lower bound checks aren't necessary. (idx >= 0x80000000 for such case)
292
#ifdef TRANSPOSE
293
|| (H_idx_x_s1 - H_idx * p.s1 != 0) || (W_idx_x_s0 - W_idx * p.s0 != 0)
294
#endif
0 commit comments