MCPcopy Create free account
hub / github.com/CompVis/zigma / __init__

Method __init__

model_zigma.py:165–168  ·  view source on GitHub ↗
(self, drop_prob: float = 0.0, scale_by_keep: bool = True)

Source from the content-addressed store, hash-verified

163 """Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks)."""
164
165 def __init__(self, drop_prob: float = 0.0, scale_by_keep: bool = True):
166 super(DropPath, self).__init__()
167 self.drop_prob = drop_prob
168 self.scale_by_keep = scale_by_keep
169
170 def forward(self, x):
171 return drop_path(x, self.drop_prob, self.training, self.scale_by_keep)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected