MCPcopy Create free account
hub / github.com/MiniMax-AI/VTP / forward_list

Method forward_list

vtp/models/layers/ffn.py:15–18  ·  view source on GitHub ↗
(self, x_list: List[Tensor])

Source from the content-addressed store, hash-verified

13 raise NotImplementedError
14
15 def forward_list(self, x_list: List[Tensor]) -> List[Tensor]:
16 x_flat, shapes, num_tokens = cat_keep_shapes(x_list)
17 x_flat = self.forward(x_flat)
18 return uncat_with_shapes(x_flat, shapes, num_tokens)
19
20
21class Mlp(nn.Module, ListForwardMixin):

Callers 1

_forward_listMethod · 0.45

Calls 3

forwardMethod · 0.95
cat_keep_shapesFunction · 0.85
uncat_with_shapesFunction · 0.85

Tested by

no test coverage detected