test 3
This commit is contained in:
parent
66a9212093
commit
98d18ae6ba
@ -37,13 +37,13 @@ static void prepareNeuralNetworkFile(const char *path, const NeuralNetwork nn)
|
||||
{
|
||||
const Layer *layer = &nn.layers[i];
|
||||
int out = layer->weights.rows;
|
||||
int in = layers->weights.cols;
|
||||
int in = layer->weights.cols;
|
||||
|
||||
|
||||
fwrite(layers->weights.buffer, sizeof(MatrixType), out * in, file);
|
||||
fwrite(layer->weights.buffer, sizeof(MatrixType), out * in, file);
|
||||
|
||||
|
||||
fwrite(layers->biases.buffer, sizeof(MatrixType), out * 1, file);
|
||||
fwrite(layer->biases.buffer, sizeof(MatrixType), out * 1, file);
|
||||
|
||||
if (i + 1 < nn.numberOfLayers)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user