update neuralNetwork

This commit is contained in:
maxgrf 2025-11-24 12:47:13 +01:00
parent efd8113350
commit 1b8b8f9427
2 changed files with 2 additions and 9 deletions

View File

@ -14,7 +14,7 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
const char *tag = "__info2_neural_network_file_format__";
fwrite(tag, 1, strlen(tag), file);
// Schreibe die Anzahl der Layer
// Überprüfung, ob es Layer gibt
if (nn.numberOfLayers == 0)
{
fclose(file);
@ -47,14 +47,7 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
}
fclose(file);
// Debuging-Ausgabe
printf("prepareNeuralNetworkFile: Datei '%s' erstellt mit %u Layer(n)\n", path, nn.numberOfLayers);
for (unsigned int i = 0; i < nn.numberOfLayers; i++)
{
Layer layer = nn.layers[i];
printf("Layer %u: weights (%u x %u), biases (%u x %u)\n",
i, layer.weights.rows, layer.weights.cols, layer.biases.rows, layer.biases.cols);
}
}
void test_loadModelReturnsCorrectNumberOfLayers(void)

Binary file not shown.