Compare commits
No commits in common. "5909e80b887f04b08c008b2f57d1ade64ba18497" and "6a2767fa71bca0c6158b74c64ef692db9841de14" have entirely different histories.
5909e80b88
...
6a2767fa71
@ -17,9 +17,8 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
|
|||||||
const char *tag = "__info2_neural_network_file_format__";
|
const char *tag = "__info2_neural_network_file_format__";
|
||||||
fwrite(tag, 1, strlen(tag), file);
|
fwrite(tag, 1, strlen(tag), file);
|
||||||
|
|
||||||
// Überprüfe, ob Layer vorhanden sind
|
// Schreibe die Anzahl der Layer
|
||||||
if (nn.numberOfLayers == 0)
|
if (nn.numberOfLayers == 0) {
|
||||||
{
|
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -52,7 +51,13 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
|
|||||||
|
|
||||||
fclose(file);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user