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

Method __init__

timm/models/layers/drop.py:163–165  ·  view source on GitHub ↗
(self, drop_prob=None)

Source from the content-addressed store, hash-verified

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 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected