MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/nn/modules.py:107–109  ·  view source on GitHub ↗
(self, drop_prob=0.0)

Source from the content-addressed store, hash-verified

105
106class DropPath(nn.Module):
107 def __init__(self, drop_prob=0.0):
108 super().__init__()
109 self.drop_prob = drop_prob
110
111 def forward(self, x):
112 if self.drop_prob == 0.0 or not self.training:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected