import torch


def build_optimiser(network, learning_rate):
    """
    Instantiate the optimiser
    :param network: neural network for accessing the trainable parameters
    :param learning_rate: initial learning rate
    :return: optimiser instance
    """
    optimiser = torch.optim.Adam(network.parameters(),
                                 lr=learning_rate)

    return optimiser