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

Method forward

src/diffusers/models/downsampling.py:65–67  ·  view source on GitHub ↗
(self, inputs: torch.Tensor)

Source from the content-addressed store, hash-verified

63 self.conv = nn.AvgPool1d(kernel_size=stride, stride=stride)
64
65 def forward(self, inputs: torch.Tensor) -> torch.Tensor:
66 assert inputs.shape[1] == self.channels
67 return self.conv(inputs)
68
69
70class Downsample2D(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected