def conv2d_output_shape(height, width, filter_height, filter_width,
    out_channels, stride):
    """Calculates the output shape of Conv2d
    
    Args:
        height (int): Height of the input.
        width (int): Width of the input.
        filter_height (int): Height of the filter.
        filter_width (int): Width of the filter.
        out_channels (int): Number of output channels.
        stride (int): Convolution stride.
    
    Returns:
        tuple: A tuple representing the output shape. `(out_channels, out_height, out_width)`
    """
    return out_channels, (height - filter_height) / stride + 1, (width -
        filter_width) / stride + 1
