MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / __init__

Method __init__

models/sd3.py:219–223  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

217
218class FinalLayer(nn.Module):
219 def __init__(self, model):
220 super().__init__()
221 self.norm_out = model.norm_out
222 self.proj_out = model.proj_out
223 self.model = [model]
224
225 def __getattr__(self, name):
226 return getattr(self.model[0], name)

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected