fix assert
This commit is contained in:
parent
c7801890c9
commit
f7e9d2785e
1 changed files with 0 additions and 1 deletions
1
ggml.c
1
ggml.c
|
@ -15465,7 +15465,6 @@ static void ggml_compute_backward(struct ggml_context * ctx, struct ggml_tensor
|
|||
{
|
||||
// necessary for llama
|
||||
if (src0->grad) {
|
||||
assert(src1->type == GGML_TYPE_I32);
|
||||
const int n_past = ((int32_t *) tensor->op_params)[0];
|
||||
src0->grad =
|
||||
ggml_add_impl(ctx, src0->grad,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue