ggml : fix nullptr derefs in GGML_OP_CONT and GGML_OP_RESHAPE back
This commit is contained in:
parent
78af3e92c9
commit
6cc42deda5
1 changed files with 0 additions and 6 deletions
6
ggml.c
6
ggml.c
|
@ -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:
|
||||
{
|
||||
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue