Minor fix

This commit is contained in:
AlexeyAB
2018-12-29 22:56:38 +03:00
parent cb94ef9308
commit 527578744b
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,7 @@ typedef struct network{
float *workspace;
int n;
int batch;
int *seen;
uint64_t *seen;
float epoch;
int subdivisions;
float momentum;

View File

@ -1191,7 +1191,9 @@ void load_weights_upto(network *net, char *filename, int cutoff)
}
else {
printf("\n seen 32 \n");
fread(net->seen, sizeof(int), 1, fp);
uint32_t iseen = 0;
fread(&iseen, sizeof(uint32_t), 1, fp);
*net->seen = iseen;
}
int transpose = (major > 1000) || (minor > 1000);