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

Method __init__

models/cosmos_predict2.py:599–603  ·  view source on GitHub ↗
(self, block, block_idx, offloader)

Source from the content-addressed store, hash-verified

597
598class TransformerLayer(nn.Module):
599 def __init__(self, block, block_idx, offloader):
600 super().__init__()
601 self.block = block
602 self.block_idx = block_idx
603 self.offloader = offloader
604
605 @torch.autocast('cuda', dtype=AUTOCAST_DTYPE)
606 def forward(self, inputs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected