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

Method __init__

models/lumina_2.py:323–329  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

321
322class FinalLayer(nn.Module):
323 def __init__(self, model):
324 super().__init__()
325 self.final_layer = model.final_layer
326 # norm_final isn't used, but by registering it we will keep it in the saved model, preventing ComfyUI from logging a
327 # warning that it's missing.
328 self.norm_final = model.norm_final
329 self.model = [model]
330
331 def __getattr__(self, name):
332 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