Update train-text-from-scratch for change

This commit is contained in:
Spencer Sutton 2023-07-11 11:19:29 -04:00
parent e7251ab827
commit 7c0fbc2f12

View file

@ -1354,17 +1354,9 @@ struct ggml_tensor * expand(struct ggml_cgraph * g, struct ggml_tensor * t) {
} }
} }
if (t->src0) { for (int i = 0; i < GGML_MAX_SRC; ++i) {
expand(g, t->src0); if (t->src[i]) {
} expand(g, t->src[i]);
if (t->src1) {
expand(g, t->src1);
}
for (int i = 0; i < GGML_MAX_OPT; ++i) {
if (t->opt[i]) {
expand(g, t->opt[i]);
} }
} }