mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Improve repr for DropPath module
This commit is contained in:
parent
e27c16b8a0
commit
07d0c4ae96
@ -164,3 +164,6 @@ class DropPath(nn.Module):
|
||||
|
||||
def forward(self, x):
|
||||
return drop_path(x, self.drop_prob, self.training, self.scale_by_keep)
|
||||
|
||||
def extra_repr(self):
|
||||
return f'drop_prob={round(self.drop_prob,3):0.3f}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user