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

Method forward

src/diffusers/models/autoencoders/vae.py:372–376  ·  view source on GitHub ↗

r"""The forward method of the `UpSample` class.

(self, x: torch.FloatTensor)

Source from the content-addressed store, hash-verified

370 self.deconv = nn.ConvTranspose2d(in_channels, out_channels, kernel_size=4, stride=2, padding=1)
371
372 def forward(self, x: torch.FloatTensor) -> torch.FloatTensor:
373 r"""The forward method of the `UpSample` class."""
374 x = torch.relu(x)
375 x = self.deconv(x)
376 return x
377
378
379class MaskConditionEncoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected