1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

renamed variable to input_ and output_ (#3507)

* renamed variable to input_ and output_

* changed input
_ to intputs and output_ to outputs
This commit is contained in:
vikasmech
2023-05-26 15:04:11 +05:30
committed by GitHub
parent d8ce53a8c4
commit ffa33d631a

View File

@@ -52,17 +52,17 @@ class Upsample1D(nn.Module):
elif use_conv:
self.conv = nn.Conv1d(self.channels, self.out_channels, 3, padding=1)
def forward(self, x):
assert x.shape[1] == self.channels
def forward(self, inputs):
assert inputs.shape[1] == self.channels
if self.use_conv_transpose:
return self.conv(x)
return self.conv(inputs)
x = F.interpolate(x, scale_factor=2.0, mode="nearest")
outputs = F.interpolate(inputs, scale_factor=2.0, mode="nearest")
if self.use_conv:
x = self.conv(x)
outputs = self.conv(outputs)
return x
return outputs
class Downsample1D(nn.Module):