mirror of
https://github.com/glouw/tinn
synced 2024-11-22 06:21:44 +03:00
better
This commit is contained in:
parent
d48c00d492
commit
7eee7ede1b
2
Makefile
2
Makefile
@ -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
4
main.c
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user