From 186cf4f39e1c753a6056101f654d2939f812d285 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 18 May 2015 23:34:08 +0800 Subject: add softmax for cumatrix --- matrix/cukernel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'matrix/cukernel.h') diff --git a/matrix/cukernel.h b/matrix/cukernel.h index f86a69b..9c13558 100644 --- a/matrix/cukernel.h +++ b/matrix/cukernel.h @@ -1,5 +1,8 @@ #ifndef NERV_CUKERNEL_H #define NERV_CUKERNEL_H void cuda_sigmoid(const Matrix *a, Matrix *b); -void cuda_rowsum(const Matrix *a, Matrix *b); +void cuda_colsum(const Matrix *a, Matrix *b); +void cuda_colmax(const Matrix *a, Matrix *b); +void cuda_softmax_denominator(const Matrix *a, const Matrix *max, Matrix *b); +void cuda_softmax_final(const Matrix *a, const Matrix *max, const Matrix *deno, Matrix *b); #endif -- cgit v1.2.3