Fixed network resizing (random=1) for non-square networks

This commit is contained in:
AlexeyAB
2018-05-14 12:20:38 +03:00
parent cda8171feb
commit 3ebcc647b6
4 changed files with 34 additions and 12 deletions

View File

@ -208,19 +208,19 @@ void error(const char *s)
{
perror(s);
assert(0);
exit(1);
exit(EXIT_FAILURE);
}
void malloc_error()
{
fprintf(stderr, "Malloc error\n");
exit(1);
exit(EXIT_FAILURE);
}
void file_error(char *s)
{
fprintf(stderr, "Couldn't open file: %s\n", s);
exit(1);
exit(EXIT_FAILURE);
}
list *split_str(char *s, char delim)