import torch


def conv3x3(in_channel, out_channel, stride=1, padding=1,dilation=1, bias=True):
    """3x3 convolution with padding"""
    return torch.nn.Conv2d(in_channel,
                           out_channel,
                           kernel_size=(3,3),
                           stride=(stride,stride),
                           padding=padding,
                           dilation=(dilation,dilation),
                           bias=bias,)