def binary_op_wrapper_sparse(sp_x, y):
    with ops.name_scope(None, op_name, [sp_x, y]) as name:
        y = ops.convert_to_tensor(y, dtype=sp_x.dtype.base_dtype, name='y')
        return sparse_tensor.SparseTensor(sp_x.indices, func(sp_x.indices, sp_x.values, sp_x.dense_shape, y, name=name), sp_x.dense_shape)
def binary_op_wrapper_sparse(sp_x, y):
    with ops.name_scope(None, op_name, [sp_x, y]) as name:
        y = ops.convert_to_tensor(y, dtype=sp_x.dtype.base_dtype, name='y')
        return sparse_tensor.SparseTensor(sp_x.indices, func(sp_x.indices, sp_x.values, sp_x.dense_shape, y, name=name), sp_x.dense_shape)