Skip to content

Commit 241a0a2

Browse files
committed
fixed bugs
1 parent 6d848a9 commit 241a0a2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

python/jtorch/nn/__init__.py

-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ def __init__(self, start_dim=1, end_dim=-1):
7575
def forward(self, x) -> jt.Var:
7676
return x.flatten(self.start_dim, self.end_dim)
7777

78-
class SiLU(Module):
79-
def forward(self, x) -> jt.Var:
80-
return x * jt.sigmoid(x)
81-
8278
class _IncompatibleKeys:
8379
def __init__(self, missing_keys, unexpected_keys):
8480
self.missing_keys = missing_keys

python/jtorch/nn/init.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
xavier_normal_ = xavier_gauss_
1212
zeros_ = zero_
1313

14+
1415
jt.Var.normal_ = normal_
1516

0 commit comments

Comments
 (0)