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

Method forward

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

Source from the content-addressed store, hash-verified

394 self.grad_checkpointing = flag
395
396 def forward(self, x, condition=None):
397 for res_i, module in enumerate(self.resblocks):
398 if self.grad_checkpointing:
399 x = checkpoint(module, x, res_i, condition, use_reentrant=False)
400 else:
401 x = module(x, res_i, condition)
402
403 return x
404
405class TransformerBase(nn.Module):
406 def __init__(self, width, layers, heads, window_size, token_len, block_cls, drop_path_rate=0.0):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected