We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f80d94 commit 09e779fCopy full SHA for 09e779f
ppim/models/deit.py
@@ -68,10 +68,10 @@ def __init__(self,
68
69
if class_dim > 0:
70
self.head_dist = nn.Linear(self.embed_dim, self.class_dim)
71
+ self.head_dist.apply(self._init_weights)
72
73
trunc_normal_(self.dist_token)
74
trunc_normal_(self.pos_embed)
- self.head_dist.apply(self._init_weights)
75
76
def forward_features(self, x):
77
B = paddle.shape(x)[0]
0 commit comments