import torch


def double_conv(channels_in, channels_out):
    """
    Generates the double convolutional layers for unet

    """
    layers = torch.nn.Sequential(
        torch.nn.Conv2d(channels_in, channels_out, kernel_size=3, padding=0),
        torch.nn.ReLU(inplace=True),
        torch.nn.Conv2d(channels_out, channels_out, kernel_size=3, padding=0),
        torch.nn.ReLU(inplace=True),
    )
    return layers