Skip to content

Commit 09e779f

Browse files
committed
fix a bug
1 parent 2f80d94 commit 09e779f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppim/models/deit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def __init__(self,
6868

6969
if class_dim > 0:
7070
self.head_dist = nn.Linear(self.embed_dim, self.class_dim)
71+
self.head_dist.apply(self._init_weights)
7172

7273
trunc_normal_(self.dist_token)
7374
trunc_normal_(self.pos_embed)
74-
self.head_dist.apply(self._init_weights)
7575

7676
def forward_features(self, x):
7777
B = paddle.shape(x)[0]

0 commit comments

Comments
 (0)