Closed engine210 closed 3 years ago
Hi, I'm curious about a line of code in deeplabv2.py https://github.com/microsoft/ProDA/blob/9ba80c7dbbd23ba1a126e3f4003a72f27d121a1f/models/deeplabv2.py#L123 It seems like return out has an extra indent which makes for loop useless. Or does it has some purpose?
return out
def forward(self, x): out = self.conv2d_list[0](x) for i in range(len(self.conv2d_list) - 1): out += self.conv2d_list[i + 1](x) return out
The code of the model is borrowed from seg-Uncertainty. For the reason, please refer to https://github.com/microsoft/ProDA/issues/2#issuecomment-818481201
Hi, I'm curious about a line of code in deeplabv2.py https://github.com/microsoft/ProDA/blob/9ba80c7dbbd23ba1a126e3f4003a72f27d121a1f/models/deeplabv2.py#L123 It seems like
return out
has an extra indent which makes for loop useless. Or does it has some purpose?