From ffa33d631a7ceca1e67eb29f9646658dfdb8f3a8 Mon Sep 17 00:00:00 2001 From: vikasmech Date: Fri, 26 May 2023 15:04:11 +0530 Subject: [PATCH] renamed variable to input_ and output_ (#3507) * renamed variable to input_ and output_ * changed input _ to intputs and output_ to outputs --- src/diffusers/models/resnet.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/diffusers/models/resnet.py b/src/diffusers/models/resnet.py index cf9e3182d4..3380a49093 100644 --- a/src/diffusers/models/resnet.py +++ b/src/diffusers/models/resnet.py @@ -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):