Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e07287edde | |||
| 6b6080459f |
@ -4,11 +4,26 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "neuralNetwork.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)
|
static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
|
||||||
{
|
{
|
||||||
// TODO
|
// Datei oeffnen
|
||||||
|
FILE *file = fopen(path, "wb");
|
||||||
|
|
||||||
|
|
||||||
|
if (file == NULL)
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
// header schreiben
|
||||||
|
fwrite(FILE_HEADER_STRING, sizeof(char), strlen(FILE_HEADER_STRING), file);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Datei wieder schließen!
|
||||||
|
fclose(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_loadModelReturnsCorrectNumberOfLayers(void)
|
void test_loadModelReturnsCorrectNumberOfLayers(void)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user