MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / forward

Method forward

modules/shared_mlp.py:34–38  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

32 self.layers = nn.Sequential(*layers)
33
34 def forward(self, inputs):
35 if isinstance(inputs, (list, tuple)):
36 return (self.layers(inputs[0]), *inputs[1:])
37 else:
38 return self.layers(inputs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected