diff --git a/Startcode/neuralNetworkTests.c b/Startcode/neuralNetworkTests.c index 612a737..45d6ccd 100644 --- a/Startcode/neuralNetworkTests.c +++ b/Startcode/neuralNetworkTests.c @@ -40,12 +40,16 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn) //outputDim. speichern fwrite(&outputDimension, sizeof(int), 1, file); + //weight werte berechnen int weightCount = layer.weights.rows * layer.weights.cols; + //Matrix speichern fwrite(layer.weights.buffer, sizeof(MatrixType), weightCount, file); + //bias berechnen int biasCount = layer.biases.rows * layer.biases.cols; + //bias speichern fwrite(layer.biases.buffer, sizeof(MatrixType), biasCount, file); }