def residual(self, x):
    h = x
    h = self.c1(h)
    if self.bn:
        h = self.b1(h)
    if self.activation:
        h = self.activation(h)
    if self.mode:
        h = self.mode(h)
    if self.dr:
        with chainer.using_config('train', True):
            h = F.dropout(h, self.dr)
    h = self.c2(h)
    if self.bn:
        h = self.b2(h)
    if self.activation:
        h = self.activation(h)
    return h
def residual(self, x):
    h = x
    h = self.c1(h)
    if self.bn:
        h = self.b1(h)
    if self.activation:
        h = self.activation(h)
    if self.mode:
        h = self.mode(h)
    if self.dr:
        with chainer.using_config('train', True):
            h = F.dropout(h, self.dr)
    h = self.c2(h)
    if self.bn:
        h = self.b2(h)
    if self.activation:
        h = self.activation(h)
    return h