(self, in_obj)
return self
Must receive a list of shapes for configuration (one for each pathway)
        the shapes correspond to the layer_container attribute

        Arguments:
            in_obj: any object that has an out_shape (Layer) or shape (Tensor, dataset)
Must receive a list of shapes for configuration (one for each pathway)
        the shapes correspond to the layer_container attribute
Must receive a list of shapes for configuration ( one for each pathway ) the shapes correspond to the layer_container attribute
def configure(self, in_obj):
        """
        Must receive a list of shapes for configuration (one for each pathway)
        the shapes correspond to the layer_container attribute

        Arguments:
            in_obj: any object that has an out_shape (Layer) or shape (Tensor, dataset)
        """
        if in_obj:
            config_layers = self.layers
            in_obj = in_obj
        else:
            in_obj = self.layers[0]

            # Remove the initial branch nodes from the layers
            for l_idx, l in enumerate(self.layers):
                if type(l) in (BranchNode,):
                    continue
                else:
                    config_layers = self.layers[l_idx:]
                    break

        super(Sequential, self).configure(in_obj)
        prev_layer = None
        for l in config_layers:
            in_obj = l.configure(in_obj)
            if prev_layer is not None:
                prev_layer.set_next(l)
            prev_layer = l
        self.parallelism = in_obj.parallelism
        self.out_shape = in_obj.out_shape
        return self
def configure ( self , in_obj ) : if in_obj : config_layers = self . layers in_obj = in_obj else : in_obj = self . layers [ 0 ] # Remove the initial branch nodes from the layers for l_idx , l in enumerate ( self . layers ) : if type ( l ) in ( BranchNode , ) : continue else : config_layers = self . layers [ l_idx : ] break super ( Sequential , self ) . configure ( in_obj ) prev_layer = None for l in config_layers : in_obj = l . configure ( in_obj ) if prev_layer is not None : prev_layer . set_next ( l ) prev_layer = l self . parallelism = in_obj . parallelism self . out_shape = in_obj . out_shape return self