def __call__(self, x, train=True): h = x links = self.children() for link in links: h = link(h, train=train) return h