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

Method __init__

models/auraflow.py:265–269  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

263
264class FinalLayer(nn.Module):
265 def __init__(self, model):
266 super().__init__()
267 self.norm_out = model.norm_out
268 self.proj_out = model.proj_out
269 self.model = [model]
270
271 def __getattr__(self, name):
272 return getattr(self.model[0], name)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected