MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / DropPath

Class DropPath

slowfast/models/common.py:62–70  ·  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

60
61
62class DropPath(nn.Module):
63 """Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks)."""
64
65 def __init__(self, drop_prob=None):
66 super(DropPath, self).__init__()
67 self.drop_prob = drop_prob
68
69 def forward(self, x):
70 return drop_path(x, self.drop_prob, self.training)

Callers 6

__init__Method · 0.90
__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