def forward(self, inp): x = self.conv1(inp) x = nn.gelu(x) x = self.conv2(x) x = inp + x x = nn.gelu(x) return x
def forward(self, x): x = self.conv1(x) if self.subpixel: x = nn.space_to_depth(x, 2) if self.use_activator: x = nn.gelu(x) return x
def forward(self, x): x = self.conv1(x) x = nn.gelu(x) x = nn.depth_to_space(x, 2) return x