Adds a layer to the network.
        :param name: name of the layer to add
        :param layer_output: output layer.

def add_layer(self, name: str, layer_output):
        """
        Adds a layer to the network.
        :param name: name of the layer to add
        :param layer_output: output layer.
        """
        self.__layers[name] = layer_output
        self.__last_layer_name = name