

def __init__(self, layers, name=None, alphas=None):
    super(Tree, self).__init__(name=name)
    self.layers = []
    for l in layers:
        if isinstance(l, Sequential):
            next_root.layers.append(l)
        elif isinstance(l, list):
            self.layers.append(Sequential(l))
        elif isinstance(l, Layer):
            self.layers.append(Sequential([l]))
        else:
            ValueError('Incompatible element for Tree container')
    self.alphas = ([1.0 for _ in self.layers] if (alphas is None) else alphas)
    self.betas = []
    next_root = None
    for l in reversed(self.layers):
        root = l.layers[0]
        beta = (1.0 if ((root is next_root) or (type(root) is not BranchNode)) else 0.0)
        next_root = root
        self.betas.append(beta)
    self.betas.reverse()

dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py Tree.__init__/VarMisuse@58/64 `self`->`next_root`