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

Method __init__

models/z_image.py:241–244  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

239
240class FinalLayer(nn.Module):
241 def __init__(self, model):
242 super().__init__()
243 self.final_layer = model.final_layer
244 self.model = [model]
245
246 def __getattr__(self, name):
247 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