(data, count, inds, fill=0)
return ret
Unmap a subset of item (data) back to the original set of items (of
    size count)
Unmap a subset of item (data) back to the original set of items (of
    size count)
Unmap a subset of item ( data ) back to the original set of items ( of size count )
def unmap(data, count, inds, fill=0):
    """ Unmap a subset of item (data) back to the original set of items (of
    size count) """
    if data.dim() == 1:
        ret = data.new_full((count, ), fill)
        ret[inds] = data
    else:
        new_size = (count, ) + data.size()[1:]
        ret = data.new_full(new_size, fill)
        ret[inds, :] = data
    return ret
def unmap ( data , count , inds , fill = 0 ) : if data . dim ( ) == 1 : ret = data . new_full ( ( count , ) , fill ) ret [ inds ] = data else : new_size = ( count , ) + data . size ( ) [ 1 : ] ret = data . new_full ( new_size , fill ) ret [ inds , : ] = data return ret