MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / forward

Method forward

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected