Anton stuff auf mein branch

This commit is contained in:
LukVal54 2025-11-27 15:45:02 +01:00
parent 42aa64d260
commit 5dfce43fa1
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) static Matrix imageBatchToMatrixOfImageVectors(const GrayScaleImage images[], unsigned int count)
{ {
Matrix matrix = {NULL, 0, 0}; Matrix matrix = (Matrix){0, 0, NULL};
if(count > 0 && images != NULL) if(count > 0 && images != NULL)
{ {

View File

@ -23,4 +23,4 @@ NeuralNetwork loadModel(const char *path);
unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[], unsigned int numberOfImages); unsigned char *predict(const NeuralNetwork model, const GrayScaleImage images[], unsigned int numberOfImages);
void clearModel(NeuralNetwork *model); void clearModel(NeuralNetwork *model);
#endif #endif