aboutsummaryrefslogtreecommitdiff
path: root/nerv/lib/matrix/cukernel.h
diff options
context:
space:
mode:
authortxh18 <cloudygooseg@gmail.com>2015-12-01 21:39:16 +0800
committertxh18 <cloudygooseg@gmail.com>2015-12-01 21:39:16 +0800
commit0c286aa6237da9e8daa7db8ed1e3805a33312926 (patch)
tree9f9f8619aeb717e21b7fd51c30fac1cfbd06a3cb /nerv/lib/matrix/cukernel.h
parent910fd4a25527028414d6cc3b2b620c74e9d06e8c (diff)
added rand_uniform and thres_mask for cumatrix
Diffstat (limited to 'nerv/lib/matrix/cukernel.h')
-rw-r--r--nerv/lib/matrix/cukernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nerv/lib/matrix/cukernel.h b/nerv/lib/matrix/cukernel.h
index 40f8e9f..47dc0a8 100644
--- a/nerv/lib/matrix/cukernel.h
+++ b/nerv/lib/matrix/cukernel.h
@@ -3,6 +3,8 @@ void cudak_(cuda_mul_elem)(const Matrix *a, const Matrix *b, Matrix *c);
void cudak_(cuda_log_elem)(const Matrix *a, Matrix *b);
void cudak_(cuda_sigmoid)(const Matrix *a, Matrix *b);
void cudak_(cuda_sigmoid_grad)(const Matrix *output, const Matrix *err, Matrix *nerr);
+void cudak_(cuda_rand_uniform)(const Matrix *a); //a's curand_gen may be modified
+void cudak_(cuda_thres_mask)(const Matrix *a, double thres, double low, double high);
void cudak_(cuda_tanh)(const Matrix *a, Matrix *b);
void cudak_(cuda_tanh_grad)(const Matrix *output, const Matrix *err, Matrix *nerr);
void cudak_(cuda_rowsum)(const Matrix *a, Matrix *b);