Testdatei fertig geschrieben
This commit is contained in:
parent
6b6080459f
commit
e07287edde
@ -4,20 +4,26 @@
|
||||
#include <math.h>
|
||||
#include "unity.h"
|
||||
#include "neuralNetwork.h"
|
||||
#include "neuralNetwork.c"
|
||||
//Dateischichten sind in neuralNetwork.h definiert
|
||||
// Dateiname: __info2_neural_network_file_format__
|
||||
|
||||
static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
|
||||
{
|
||||
// Datei oeffnen
|
||||
FILE *fopen(const char *NeuralNetwork, const char *r);
|
||||
FILE *file = fopen(path, "wb");
|
||||
|
||||
if (__info2_neural_network_file_format__ == NULL) return 1;
|
||||
|
||||
// Dateiname: __info2_neural_network_file_format__
|
||||
if (file == NULL)
|
||||
return 1;
|
||||
|
||||
// header schreiben
|
||||
fwrite(FILE_HEADER_STRING, sizeof(char), strlen(FILE_HEADER_STRING), file);
|
||||
|
||||
|
||||
|
||||
// Datei wieder schließen!
|
||||
int fclose(FILE *path);
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
void test_loadModelReturnsCorrectNumberOfLayers(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user