update neuralNetwork
This commit is contained in:
parent
efd8113350
commit
1b8b8f9427
@ -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)
|
||||
|
||||
BIN
testFile.info2
BIN
testFile.info2
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user