aboutsummaryrefslogtreecommitdiff
path: root/matrix/mmatrix.c
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2015-06-10 20:42:10 +0800
committerDeterminant <[email protected]>2015-06-10 20:42:10 +0800
commitb818c2562d07a69083377cbc34f2add108e9fa66 (patch)
treea595ce4f269035951715334d2942d91d42ae236e /matrix/mmatrix.c
parentc20af45d0756d5d3004105da10e51d42a382ad66 (diff)
add CombinerLayer to support branches in NN; add MSELayer
Diffstat (limited to 'matrix/mmatrix.c')
-rw-r--r--matrix/mmatrix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/matrix/mmatrix.c b/matrix/mmatrix.c
index ffc058d..d1d68b9 100644
--- a/matrix/mmatrix.c
+++ b/matrix/mmatrix.c
@@ -1,10 +1,12 @@
#define NERV_GENERIC_MMATRIX
+#include <stdlib.h>
#include "../common.h"
void nerv_matrix_host_float_init(lua_State *L);
void nerv_matrix_host_double_init(lua_State *L);
void nerv_matrix_host_int_init(lua_State *L);
void nerv_mmatrix_init(lua_State *L) {
+ srand(1);
nerv_matrix_host_float_init(L);
nerv_matrix_host_double_init(L);
nerv_matrix_host_int_init(L);