This line
output = F.sigmoid(self.conv10(conv9))
cause
UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead. warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")
It should be:
output = torch.sigmoid(self.conv10(conv9))