MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / forward

Method forward

scripts/convert_consistency_decoder.py:220–224  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

218 self.f_2 = nn.Linear(n_out, n_out)
219
220 def forward(self, x) -> torch.Tensor:
221 x = self.emb(x)
222 x = self.f_1(x)
223 x = F.silu(x)
224 return self.f_2(x)
225
226
227class ImageEmbedding(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected