cont : fix backward

This commit is contained in:
Georgi Gerganov
2026-10-01 17:47:16 +03:00
parent 2e8a90e25a
commit 25c27513f3
+1 -1
View File
@@ -6741,7 +6741,7 @@ static void ggml_compute_backward(
} break;
case GGML_OP_SUM: {
if (src0_needs_grads) {
ggml_add_or_set(ctx, cgraph, isrc0, grad);
ggml_add_or_set(ctx, cgraph, isrc0, ggml_repeat(ctx, grad, src0));
}
} break;
case GGML_OP_SUM_ROWS: {