Struktur für nNTest rauslesen
This commit is contained in:
parent
ac084a5ad2
commit
8b6c64623d
@ -126,13 +126,16 @@ NeuralNetwork loadModel(const char *path)
|
||||
|
||||
if(file != NULL)
|
||||
{
|
||||
if(checkFileHeader(file))
|
||||
if(checkFileHeader(file)) // __info2_neural_network_file_format__
|
||||
{
|
||||
unsigned int inputDimension = readDimension(file);
|
||||
unsigned int outputDimension = readDimension(file);
|
||||
unsigned int inputDimension = readDimension(file); // ein int
|
||||
unsigned int outputDimension = readDimension(file);// noch ein int
|
||||
|
||||
while(inputDimension > 0 && outputDimension > 0)
|
||||
{
|
||||
// ließt zwei Matritzen (je eine Zeile mit allen Werten hintereinander, durch Leerzeichen getrennt)
|
||||
// 1. Matrix: weights
|
||||
// 2. Matrix: biases
|
||||
Layer layer = readLayer(file, inputDimension, outputDimension);
|
||||
Layer *layerBuffer = NULL;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user