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

Method __init__

models/flux2.py:377–381  ·  view source on GitHub ↗
(self, layer, block_idx, offloader)

Source from the content-addressed store, hash-verified

375
376class SingleTransformerLayer(nn.Module):
377 def __init__(self, layer, block_idx, offloader):
378 super().__init__()
379 self.layer = layer
380 self.block_idx = block_idx
381 self.offloader = offloader
382
383 @torch.autocast('cuda', dtype=AUTOCAST_DTYPE)
384 def forward(self, inputs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected