kommentare

This commit is contained in:
Baeuml committed 2026-11-11 00:41:22 +01:00
1 parent eb8db3856a
commit 7414865608
1 file changed
+4
+4
View File
@@ -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);
}