From 7272bc74c2667450fb621720437e256b4330ae91 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 11 Jun 2016 08:03:40 -0400 Subject: [PATCH] Made fill_gaussian() default to a standard normal distribution. --- dlib/dnn/curand_dlibapi.h | 4 ++-- dlib/dnn/tensor_tools.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlib/dnn/curand_dlibapi.h b/dlib/dnn/curand_dlibapi.h index 133d6f33a..60a2c67ea 100644 --- a/dlib/dnn/curand_dlibapi.h +++ b/dlib/dnn/curand_dlibapi.h @@ -28,8 +28,8 @@ namespace dlib void fill_gaussian ( tensor& data, - float mean, - float stddev + float mean = 0, + float stddev = 1 ); /*! requires diff --git a/dlib/dnn/tensor_tools.h b/dlib/dnn/tensor_tools.h index 865cfe864..b6ab952c4 100644 --- a/dlib/dnn/tensor_tools.h +++ b/dlib/dnn/tensor_tools.h @@ -72,8 +72,8 @@ namespace dlib { namespace tt void fill_gaussian ( tensor& data, - float mean, - float stddev + float mean = 0, + float stddev = 1 ); /*! requires