Improve repr for DropPath module

pull/1317/head
Ross Wightman 2 years ago
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…
Cancel
Save