mirror of https://github.com/glouw/tinn
mixed constructor args
This commit is contained in:
parent
2617d72ec5
commit
975f45676e
2
Tinn.c
2
Tinn.c
|
@ -172,7 +172,7 @@ Tinn xtload(const char* path)
|
|||
// Header.
|
||||
fscanf(file, "%d %d %d\n", &nips, &nhid, &nops);
|
||||
// A new tinn is returned.
|
||||
const Tinn t = xtbuild(nips, nhid, nips);
|
||||
const Tinn t = xtbuild(nips, nhid, nops);
|
||||
// Biases and weights.
|
||||
for(int i = 0; i < t.nb; i++) fscanf(file, "%f\n", &t.b[i]);
|
||||
for(int i = 0; i < t.nw; i++) fscanf(file, "%f\n", &t.w[i]);
|
||||
|
|
Loading…
Reference in New Issue