From 741486560822a4063a81c2153584c5719fb4bb35 Mon Sep 17 00:00:00 2001 From: Baeuml Date: Wed, 11 Nov 2026 00:41:22 +0100 Subject: [PATCH] kommentare --- Startcode/neuralNetworkTests.c | 4 ++++ 1 file changed, 4 insertions(+) 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); }