'Set shape based parameters of this layer given an input tuple, int
or input layer.
Arguments:
in_obj (int, tuple, Layer, Tensor or dataset): object that provides shape
information for layer
Returns:
(tuple): shape of output data'

def configure(self, in_obj):

    super(Tree, self).configure(in_obj)
    self.layers[0].configure(in_obj)
    for l in self.layers[1:]:
        l.configure(None)
    self.out_shape = [l.out_shape for l in self.layers]
    return self
