mirror of https://github.com/Jittor/Jittor
change nn.sigmoid
This commit is contained in:
parent
d2b571e2bc
commit
503da59a3b
|
@ -633,7 +633,7 @@ class Sigmoid(Module):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
def execute(self, x) :
|
||||
return 1 / (1 + jt.exp(-x))
|
||||
return x.sigmoid()
|
||||
|
||||
def resize(x, size, mode="nearest"):
|
||||
img = x
|
||||
|
|
Loading…
Reference in New Issue