def __call__(self, x, depth=1):
assert 1 <= depth <= self.n_encdec
h = F.local_response_normalization(x, 5, 1, 0.0005, 0.75)
# Unchain the inner EncDecs after the given depth
encdec = getattr(self, 'encdec{}'.format(depth))
encdec.inside = None
h = self.encdec1(h, train=self.train)
h = self.conv_cls(h)
return h
评论列表
文章目录