mirror of
https://github.com/ggml-org/whisper.cpp.git
synced 2026-10-12 01:05:43 +02:00
ggml : require input tensors to be GGML_OP_NONE (llama/29647)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user