def get_stride_sizes(data):
    """ Get the row and column stride sizes of the convolution in data. """
    stride_row = data.stride_rows.iloc[0]
    stride_col = data.stride_cols.iloc[0]
    assert (data.stride_rows == stride_row).all()
    assert (data.stride_cols == stride_col).all()
    return stride_row, stride_col