ggml : require input tensors to be GGML_OP_NONE (llama/29647)

This commit is contained in:
Georgi Gerganov
2026-10-06 10:38:08 +03:00
parent 5e1914a735
commit 4d4817ed25
+1
View File
@@ -7992,6 +7992,7 @@ void ggml_graph_dump_dot(const struct ggml_cgraph * gb, const struct ggml_cgraph
////////////////////////////////////////////////////////////////////////////////
void ggml_set_input(struct ggml_tensor * tensor) {
GGML_ASSERT(tensor->op == GGML_OP_NONE);
tensor->flags |= GGML_TENSOR_FLAG_INPUT;
}