MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / __init__

Method __init__

Image_Classification/src/models/cct.py:153–155  ·  view source on GitHub ↗
(self, drop_prob=None)

Source from the content-addressed store, hash-verified

151
152class DropPath(nn.Module):
153 def __init__(self, drop_prob=None):
154 super().__init__()
155 self.drop_prob = float(drop_prob)
156
157 def forward(self, x):
158 batch, drop_prob, device, dtype = x.shape[0], self.drop_prob, x.device, x.dtype

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected