neuralNetworkTests v2

This commit is contained in:
Tobias Busch 2025-11-24 22:32:48 +01:00
parent c1b20e632b
commit e4ba70f5da
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ NeuralNetwork loadModel(const char *path)
static Matrix imageBatchToMatrixOfImageVectors(const GrayScaleImage images[], unsigned int count)
{
Matrix matrix = {NULL, 0, 0};
Matrix matrix = {0, 0, NULL}; //{NULL, 0, 0} -> fehler
if(count > 0 && images != NULL)
{

View File

@ -26,7 +26,7 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
fwrite(nn.layers[i].weights.buffer, sizeof(MatrixType), numWeights, file);
unsigned int numBiases = nn.layers[i].biases.rows * nn.layers[i].biases.cols;
fwrite(nn.layers[i].biases.buffer, sizeof(MatrixType), 1, file);
fwrite(nn.layers[i].biases.buffer, sizeof(MatrixType), numBiases, file);
}
unsigned int outputDimension = 0;