def __check_input(x, vec):
    var_names = {'x': x, 'vec': vec}
    for (name, val) in var_names.items():
        check_variable_and_dtype(val, name, ['float32', 'float64'], 'mv')
    x_shape = list(x.shape)
    vec_shape = list(vec.shape)
    if (len(x_shape) != 2):
        raise ValueError("x should be 2-dimensional. But received x's dimention: {}".format(x_shape))
    if (len(vec_shape) != 1):
        raise ValueError("vec should be 1-dimensional. But received vec's dimention: {}".format(vec_shape))
def __check_input(x, vec):
    var_names = {'x': x, 'vec': vec}
    for (name, val) in var_names.items():
        check_variable_and_dtype(val, name, ['float32', 'float64'], 'mv')
    x_shape = list(x.shape)
    vec_shape = list(vec.shape)
    if (len(x_shape) != 2):
        raise ValueError("x should be 2-dimensional. But received x's dimention: {}".format(x_shape))
    if (len(vec_shape) != 1):
        raise ValueError("vec should be 1-dimensional. But received vec's dimention: {}".format(vec_shape))