ggml : require input tensors to be GGML_OP_NONE (#29647)

This commit is contained in:
Georgi Gerganov authored and GitHub committed 2026-09-29 20:23:33 +03:00
1 parent e904318a2d
commit b5cf8ce02a
2 files changed
+2 -4

No files matched your search

+1 -4
View File
@@ -599,10 +599,7 @@ static int llama_graph_n_input_tensors(ggml_cgraph * gf) {
}
for (const auto & [tensor, nodes] : users) {
if (tensor->op != GGML_OP_NONE) {
LLAMA_LOG_WARN("%s: input tensor '%32s' has op %s, expected GGML_OP_NONE\n",
__func__, tensor->name, ggml_op_name(tensor->op));
}
GGML_ASSERT(tensor->op == GGML_OP_NONE);
for (const ggml_tensor * node : nodes) {
LLAMA_LOG_DEBUG("%s: input tensor '%32s' [%s, ne = { %5" PRId64 ", %5" PRId64 ", %5" PRId64 ", %5" PRId64 " }] is used by node '%s' (%s)\n",
__func__, tensor->name, ggml_type_name(tensor->type),