This commit is contained in:
Alexei Keller 2025-11-24 12:01:53 +01:00
parent 7b4cac83c5
commit 3581f434c4

View File

@ -36,8 +36,8 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
for (int i = 0; i < nn.numberOfLayers; i++)
{
//const Layerlayer = &nn.layers[i];
int out = Layer->weights.rows;
int in = Layer->weights.cols;
int out = nn.layers->weights.rows;
int in = nn.layers->weights.cols;
fwrite(layers->weights.buffer, sizeof(MatrixType), out * in, file);