import torch


def conv1x1(in_planes: int, out_planes: int, stride: int = 1):
    """
    1x1 convolution without padding.

    Args:
        in_planes (int): The number of input channels.
        out_planes (int): The number of output channels.
        stride (int): The convolution stride. Controls the stride for the cross-correlation

    Returns:
        :obj:`torch.nn.Conv3d`: A convolution layer.
    """

    return torch.nn.Conv3d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False)