This commit is contained in:
zhouwy19 2020-12-06 17:49:33 +08:00
commit b2ad8e533c
1 changed files with 1 additions and 1 deletions

View File

@ -885,7 +885,7 @@ class Sigmoid(Module):
def execute(self, x) :
return x.sigmoid()
def softplus(x,bata=1,threshold=20):
def softplus(x,beta=1,threshold=20):
return 1 / beta * jt.log(1 + (beta * x).exp())
def hardtanh(x,min_val=-1,max_val=1):