verbesserung

This commit is contained in:
Baeuml committed 2026-11-11 00:37:27 +01:00
1 parent aba8d54204
commit eb8db3856a
1 file changed
+3 -3
+3 -3
View File
@@ -22,7 +22,7 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
const char *header = "__info2_neural_network_file_format__";
fwrite(header, sizeof(char), strlen(header), file);
//Nur wenn mind. 1 layer da ist
//Prüfen ob Layer existieren
if (nn.numberOfLayers > 0)
{
//Format entspricht anzahl der cols der Matrix des 1ten Layers
@@ -50,9 +50,9 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
}
//Abbruchkriterium für loadModel
int endMarker = 0;
int ende= 0;
fwrite(&endMarker, sizeof(int), 1, file);
fwrite(&ende, sizeof(int), 1, file);
}
//Datei schließen