Skip to content

Commit 71edc02

Browse files
author
radioman
committed
1 parent c0f3ed1 commit 71edc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConvNetSharp/Layers/DropOutLayer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public override Volume Forward(Volume input, bool isTraining = false)
4343
// scale the activations during prediction
4444
for (var i = 0; i < length; i++)
4545
{
46-
output.Weights[i] *= this.DropProb.Value;
46+
output.Weights[i] *= 1 - this.DropProb.Value;
4747
}
4848
}
4949

0 commit comments

Comments
 (0)