This commit is contained in:
Qiwei Ye 2016-05-30 10:43:57 +08:00
Родитель f1af69bc48
Коммит 36e652806a
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1,6 +1,7 @@
// SGD.cpp -- implements SGD with all bells and whistles, parallelization, randomization, etc.
#define _CRT_SECURE_NO_WARNINGS // "secure" CRT not available on all platforms --add this at the top of all CPP files that give "function or variable may be unsafe" warnings
#define DUMPOUTPUT
#include "Basics.h"
#include "SGD.h"
@ -1935,6 +1936,7 @@ template <class ElemType>
// clipping gradients to prevent outliers
sgd->ClipGradient(gradientValues, actualMBSize);
GradientsUpdateType adpType = sgd->GradUpdateType();
double noiseStd = sgd->GradientUpdateNoiseStd();
Matrix<ElemType> sgdUpdateNoise((DEVICEID_TYPE) functionValues.GetDeviceId());