fix Softplus derivative

This commit is contained in:
Connor Olding 2017-07-21 21:02:04 +00:00
parent c2bb2cfcd5
commit 7c4ef4ad05

View file

@ -698,7 +698,7 @@ class Softplus(Layer):
return np.log(1 + np.exp(X))
def backward(self, dY):
return sigmoid(self.X)
return dY * sigmoid(self.X)
class Tanh(Layer):
def forward(self, X):