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

Method forward

model/transformer_utils.py:415–420  ·  view source on GitHub ↗
(self, x, condition=None)

Source from the content-addressed store, hash-verified

413 self.transformer.set_grad_checkpointing(set_checkpointing)
414
415 def forward(self, x, condition=None):
416 # x [B, V*N, D]
417 x = self.layernorm1(x)
418 x = self.transformer(x, condition)
419 x = self.layernorm2(x)
420 return x
421
422class TransformerEncoder(TransformerBase):
423 def __init__(self, input_res, in_channels, patch_size, width, layers, heads, window_size):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected