This commit is contained in:
nlasky2000-dot 2026-02-06 15:28:38 +00:00 committed by GitHub
commit 6319f38882
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -6905,7 +6905,10 @@ void ggml_build_backward_expand(
// inplace operations are currently not supported
GGML_ASSERT(!node->view_src || node->op == GGML_OP_CPY || node->op == GGML_OP_VIEW ||
node->op == GGML_OP_RESHAPE || node->op == GGML_OP_PERMUTE || node->op == GGML_OP_TRANSPOSE);
node->op == GGML_OP_RESHAPE || node->op == GGML_OP_PERMUTE || node->op == GGML_OP_TRANSPOSE ||
node->op == GGML_OP_ADD || node->op == GGML_OP_ACC || node->op == GGML_OP_DUP || node->op == GGML_OP_SCALE ||
node->op == GGML_OP_SUB || node->op == GGML_OP_MUL || node->op == GGML_OP_DIV ||
node->op == GGML_OP_OPT_STEP_ADAMW || node->op == GGML_OP_OPT_STEP_SGD);
const size_t ihash = ggml_hash_find(&cgraph->visited_hash_set, node);
GGML_ASSERT(ihash != GGML_HASHSET_FULL);