forked from freudenreichan/info2Praktikum-NeuronalesNetz
tweaks
This commit is contained in:
2 files changed
+4
No files matched your search
@@ -38,6 +38,7 @@
|
|||||||
Startcode/mnist
|
Startcode/mnist
|
||||||
Startcode/runTests
|
Startcode/runTests
|
||||||
Startcode/runMatrixTests
|
Startcode/runMatrixTests
|
||||||
|
Startcode/runImageInputTests
|
||||||
Startcode/runNeuralNetworkTests
|
Startcode/runNeuralNetworkTests
|
||||||
|
|
||||||
# clangd (locally generated, contains absolute paths)
|
# clangd (locally generated, contains absolute paths)
|
||||||
|
|||||||
@@ -180,6 +180,9 @@ static void writeDimension(FILE *file, const unsigned int dimension)
|
|||||||
|
|
||||||
static void writeMatrix(FILE *file, const Matrix matrix)
|
static void writeMatrix(FILE *file, const Matrix matrix)
|
||||||
{
|
{
|
||||||
|
if (matrix.buffer == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
fwrite(matrix.buffer, sizeof(MatrixType), matrix.rows * matrix.cols, file);
|
fwrite(matrix.buffer, sizeof(MatrixType), matrix.rows * matrix.cols, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user