(steps, lengths)
return ret
Make a embedding mask, meant to mask out those paddings
    
    Args:
        steps: step size
        lengths: lengths
    Returns:
        ret: mask matrix, type ndarray
Make a embedding mask, meant to mask out those paddings
    
    Args:
        steps: step size
        lengths: lengths
    Returns:
        ret: mask matrix, type ndarray
Make a embedding mask meant to mask out those paddings Args : steps : step size lengths : lengths Returns : ret : mask matrix type ndarray
def makeMask(steps, lengths):
    """
    Make a embedding mask, meant to mask out those paddings
    
    Args:
        steps: step size
        lengths: lengths
    Returns:
        ret: mask matrix, type ndarray
    
    """
    ret = np.zeros([len(lengths), steps])
    for i in range(len(lengths)):
        ret[i, :lengths[i]]=1
    return ret
def makeMask ( steps , lengths ) : ret = np . zeros ( [ len ( lengths ) , steps ] ) for i in range ( len ( lengths ) ) : ret [ i , : lengths [ i ] ] = 1 return ret