MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / DropPath

Class DropPath

timm/models/layers/drop.py:160–168  ·  view source on GitHub ↗

Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).

Source from the content-addressed store, hash-verified

158
159
160class DropPath(nn.Module):
161 """Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
162 """
163 def __init__(self, drop_prob=None):
164 super(DropPath, self).__init__()
165 self.drop_prob = drop_prob
166
167 def forward(self, x):
168 return drop_path(x, self.drop_prob, self.training)

Callers 15

__init__Method · 0.90
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected