Compare commits

..

No commits in common. "c212109a27587cc42a9dc62e22f994f439858dbd" and "05fbd80b8ccad330a3754968c804c95e9841add3" have entirely different histories.

2 changed files with 0 additions and 7 deletions

View File

@ -118,10 +118,6 @@ static void assignActivations(NeuralNetwork model)
if(model.numberOfLayers > 0)
model.layers[model.numberOfLayers-1].activation = softmax;
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "neuralNetwork.h"
NeuralNetwork loadModel(const char *path)
{
@ -172,7 +168,6 @@ NeuralNetwork loadModel(const char *path)
return model;
}
static Matrix imageBatchToMatrixOfImageVectors(const GrayScaleImage images[], unsigned int count)
{
Matrix matrix = {NULL, 0, 0};
@ -259,7 +254,6 @@ unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[],
return result;
}
void clearModel(NeuralNetwork *model)
{
if(model != NULL)

View File

@ -38,7 +38,6 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
fwrite(layer.biases.buffer, sizeof(MatrixType), biasCount, file);
}
// End-Marker (inputDim = 0)
unsigned int zero = 0;
fwrite(&zero, sizeof(unsigned int), 1, file);