def r_binary_op_wrapper(y, x):
    with ops.name_scope(None, op_name, [x, y]) as name:
        x = ops.convert_to_tensor(x, dtype=y.dtype.base_dtype, name='x')
        return func(x, y, name=name)
def r_binary_op_wrapper(y, x):
    with ops.name_scope(None, op_name, [x, y]) as name:
        x = ops.convert_to_tensor(x, dtype=y.dtype.base_dtype, name='x')
        return func(x, y, name=name)