diff options
author | Jeff Donahue <jeff.donahue@gmail.com> | 2014-04-08 11:57:25 -0700 |
---|---|---|
committer | Jeff Donahue <jeff.donahue@gmail.com> | 2014-04-08 20:17:17 -0700 |
commit | 078e0bf713bcc4f9178f6694c66b368302448484 (patch) | |
tree | 1ec4d86df45854ff8b1bc13deaf1a31328c7ef54 /src/caffe/util/math_functions.cpp | |
parent | 81db75c6aef06ab0699690ad290a6853f2088711 (diff) | |
download | caffeonacl-078e0bf713bcc4f9178f6694c66b368302448484.tar.gz caffeonacl-078e0bf713bcc4f9178f6694c66b368302448484.tar.bz2 caffeonacl-078e0bf713bcc4f9178f6694c66b368302448484.zip |
make RNG function names more similar to other caffe math function names
Diffstat (limited to 'src/caffe/util/math_functions.cpp')
-rw-r--r-- | src/caffe/util/math_functions.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/caffe/util/math_functions.cpp b/src/caffe/util/math_functions.cpp index 0791a86c..a524ed3d 100644 --- a/src/caffe/util/math_functions.cpp +++ b/src/caffe/util/math_functions.cpp @@ -315,7 +315,7 @@ template double caffe_nextafter(const double b); template <typename Dtype> -void caffe_vRngUniform(const int n, Dtype* r, +void caffe_rng_uniform(const int n, Dtype* r, const Dtype a, const Dtype b) { CHECK_GE(n, 0); CHECK(r); @@ -330,14 +330,14 @@ void caffe_vRngUniform(const int n, Dtype* r, } template -void caffe_vRngUniform<float>(const int n, float* r, +void caffe_rng_uniform<float>(const int n, float* r, const float a, const float b); template -void caffe_vRngUniform<double>(const int n, double* r, +void caffe_rng_uniform<double>(const int n, double* r, const double a, const double b); template <typename Dtype> -void caffe_vRngGaussian(const int n, Dtype* r, const Dtype a, +void caffe_rng_gaussian(const int n, Dtype* r, const Dtype a, const Dtype sigma) { CHECK_GE(n, 0); CHECK(r); @@ -352,15 +352,15 @@ void caffe_vRngGaussian(const int n, Dtype* r, const Dtype a, } template -void caffe_vRngGaussian<float>(const int n, float* r, const float a, +void caffe_rng_gaussian<float>(const int n, float* r, const float a, const float sigma); template -void caffe_vRngGaussian<double>(const int n, double* r, const double a, +void caffe_rng_gaussian<double>(const int n, double* r, const double a, const double sigma); template <typename Dtype> -void caffe_vRngBernoulli(const int n, int* r, const Dtype p) { +void caffe_rng_bernoulli(const int n, int* r, const Dtype p) { CHECK_GE(n, 0); CHECK(r); CHECK_GE(p, 0); @@ -375,10 +375,10 @@ void caffe_vRngBernoulli(const int n, int* r, const Dtype p) { } template -void caffe_vRngBernoulli<double>(const int n, int* r, const double p); +void caffe_rng_bernoulli<double>(const int n, int* r, const double p); template -void caffe_vRngBernoulli<float>(const int n, int* r, const float p); +void caffe_rng_bernoulli<float>(const int n, int* r, const float p); template <> float caffe_cpu_dot<float>(const int n, const float* x, const float* y) { |