MCPcopy Create free account
hub / github.com/Walter0807/MotionBERT / __init__

Method __init__

lib/model/drop.py:38–40  ·  view source on GitHub ↗
(self, drop_prob=None)

Source from the content-addressed store, hash-verified

36 """Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks).
37 """
38 def __init__(self, drop_prob=None):
39 super(DropPath, self).__init__()
40 self.drop_prob = drop_prob
41
42 def forward(self, x):
43 return drop_path(x, self.drop_prob, self.training)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected