def extract_weights(network):
    """
    Will return the current parameters of the network along with their names.
    Inputs:     - A neural network object (i.e. from torch.nn.Module)
    
    Outputs:    - A tuple containing the tensor in each parameter of the network at the moment the function was called.
                - A tuple containing the names of each parameter.
    """
    params = []
    names = []
    for name, param in network.named_parameters():
        params.append(param.detach().clone())
        names.append(name)
    params = tuple(params)
    names = tuple(names)
    return params, names