Skip to content

Commit

Permalink
ggml : fix nullptr derefs in GGML_OP_CONT and GGML_OP_RESHAPE back
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed May 8, 2023
1 parent 78af3e9 commit 6cc42de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -13891,9 +13891,6 @@ static void ggml_compute_backward(struct ggml_context * ctx, struct ggml_tensor
GGML_ASSERT(ggml_is_contiguous(tensor->grad));
src0->grad = ggml_add_impl(ctx, src0->grad, tensor->grad, inplace);
}
if (src1->grad) {
// noop
}
} break;
case GGML_OP_RESHAPE:
{
Expand All @@ -13904,9 +13901,6 @@ static void ggml_compute_backward(struct ggml_context * ctx, struct ggml_tensor
ggml_reshape(ctx, tensor->grad, src0->grad),
inplace);
}
if (src1->grad) {
// noop
}
} break;
case GGML_OP_VIEW:
{
Expand Down

0 comments on commit 6cc42de

Please sign in to comment.