From: Kai Li Date: Tue, 25 Feb 2014 11:21:18 +0000 (+0800) Subject: Instantiate caffe_cpu_sign for float and double X-Git-Tag: submit/tizen/20180823.020014~692^2~81^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f634899f44fda89692e12b8114889838f50a73d8;p=platform%2Fupstream%2Fcaffeonacl.git Instantiate caffe_cpu_sign for float and double --- diff --git a/src/caffe/util/math_functions.cpp b/src/caffe/util/math_functions.cpp index 04a5228..bf24488 100644 --- a/src/caffe/util/math_functions.cpp +++ b/src/caffe/util/math_functions.cpp @@ -410,4 +410,10 @@ void caffe_gpu_asum(const int n, const double* x, double* y) { CUBLAS_CHECK(cublasDasum(Caffe::cublas_handle(), n, x, 1, y)); } +template <> +void caffe_cpu_sign(const int n, const float* x, float* y); + +template <> +void caffe_cpu_sign(const int n, const double* x, double* y); + } // namespace caffe