fix Softplus derivative
This commit is contained in:
parent
c2bb2cfcd5
commit
7c4ef4ad05
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue