Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jm12138 committed Mar 31, 2021
1 parent 2f80d94 commit 09e779f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppim/models/deit.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def __init__(self,

if class_dim > 0:
self.head_dist = nn.Linear(self.embed_dim, self.class_dim)
self.head_dist.apply(self._init_weights)

trunc_normal_(self.dist_token)
trunc_normal_(self.pos_embed)
self.head_dist.apply(self._init_weights)

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

0 comments on commit 09e779f

Please # to comment.