This commit is contained in:
Gustav Louw 2018-03-29 12:10:51 -07:00
parent d48c00d492
commit 7eee7ede1b
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ CFLAGS =
CFLAGS += -std=c89 CFLAGS += -std=c89
CFLAGS += -Wshadow -Wall -Wpedantic -Wextra -Wdouble-promotion -Wunused-result CFLAGS += -Wshadow -Wall -Wpedantic -Wextra -Wdouble-promotion -Wunused-result
CFLAGS += -g CFLAGS += -g
CFLAGS += -O2 -march=native -pipe CFLAGS += -Ofast -march=native -pipe
CFLAGS += -flto CFLAGS += -flto
LDFLAGS = LDFLAGS =

4
main.c
View File

@ -15,7 +15,7 @@ static double* tgload(int nops)
{ {
double* tg = (double*) calloc(nops, sizeof(*tg)); double* tg = (double*) calloc(nops, sizeof(*tg));
tg[0] = 0.01; tg[0] = 0.01;
tg[1] = 0.99; /* tg[1] = 0.99; */
return tg; return tg;
} }
@ -23,7 +23,7 @@ int main()
{ {
int nips = 2; int nips = 2;
int nhid = 3; int nhid = 3;
int nops = 2; int nops = 1;
double* in = inload(nips); double* in = inload(nips);
double* tg = tgload(nops); double* tg = tgload(nops);
Tinn tinn = tbuild(nips, nops, nhid); Tinn tinn = tbuild(nips, nops, nhid);