softmax on gpu

This commit is contained in:
Joseph Redmon
2014-10-21 14:49:18 -07:00
parent 9b3c7136f3
commit 158bb1bee9
17 changed files with 440 additions and 97 deletions

View File

@ -4,6 +4,11 @@
#include <string.h>
#include <math.h>
float sec(clock_t clocks)
{
return (float)clocks/CLOCKS_PER_SEC;
}
void error(char *s)
{
fprintf(stderr, "Error: %s\n", s);