Fix the number of forward looking nodes
This commit is contained in:
parent
6f2a61eb4f
commit
6d18c6ea3e
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -9531,7 +9531,7 @@ void ggml_graph_compute(struct ggml_context * ctx, struct ggml_cgraph * cgraph)
|
||||||
{
|
{
|
||||||
int start = i;
|
int start = i;
|
||||||
int end = i;
|
int end = i;
|
||||||
while (end < cgraph->n_nodes && (end - start) < n_threads * 2)
|
while (end < cgraph->n_nodes && (end - start) < 48)
|
||||||
{
|
{
|
||||||
struct ggml_tensor * next = cgraph->nodes[end];
|
struct ggml_tensor * next = cgraph->nodes[end];
|
||||||
end++;
|
end++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue