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

Method forward

model_zigma.py:170–171  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

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)
172
173 def extra_repr(self):
174 return f"drop_prob={round(self.drop_prob,3):0.3f}"

Callers

nothing calls this directly

Calls 1

drop_pathFunction · 0.85

Tested by

no test coverage detected