kommentare
This commit is contained in:
1 parent
eb8db3856a
commit
7414865608
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user