def dense_to_sparse_scalar(tensor):
    indices = [[]]
    values = array_ops.expand_dims(tensor, 0)
    shape = []
    return sparse_tensor.SparseTensorValue(indices, values, shape)
def dense_to_sparse_scalar(tensor):
    indices = [[]]
    values = array_ops.expand_dims(tensor, 0)
    shape = []
    return sparse_tensor.SparseTensorValue(indices, values, shape)