MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

model/transformer_utils.py:406–410  ·  view source on GitHub ↗
(self, width, layers, heads, window_size, token_len, block_cls, drop_path_rate=0.0)

Source from the content-addressed store, hash-verified

404
405class TransformerBase(nn.Module):
406 def __init__(self, width, layers, heads, window_size, token_len, block_cls, drop_path_rate=0.0):
407 super().__init__()
408 self.layernorm1 = LayerNorm(width)
409 self.transformer = Transformer(width, layers, heads, window_size=window_size, block_cls=block_cls, drop_path_rate=drop_path_rate)
410 self.layernorm2 = LayerNorm(width)
411
412 def set_grad_checkpointing(self, set_checkpointing=True):
413 self.transformer.set_grad_checkpointing(set_checkpointing)

Callers

nothing calls this directly

Calls 3

LayerNormClass · 0.85
TransformerClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected