(wn, s_wo)
return pr_wo
return: [ pr_wc1_i, pr_wc2_i, ...]
return: [ pr_wc1_i, pr_wc2_i, ...]
return : [ pr_wc1_i pr_wc2_i ... ]
def pred_wo(wn, s_wo):
    """
    return: [ pr_wc1_i, pr_wc2_i, ...]
    """
    # s_wo = [B, 4, n_op]
    pr_wo_a = s_wo.argmax(dim=2)  # [B, 4]
    # get g_num
    pr_wo = []
    for b, pr_wo_a1 in enumerate(pr_wo_a):
        wn1 = wn[b]
        pr_wo.append(list(pr_wo_a1.data.cpu().numpy()[:wn1]))

    return pr_wo
def pred_wo ( wn , s_wo ) : # s_wo = [B, 4, n_op] pr_wo_a = s_wo . argmax ( dim = 2 ) # [B, 4] # get g_num pr_wo = [ ] for b , pr_wo_a1 in enumerate ( pr_wo_a ) : wn1 = wn [ b ] pr_wo . append ( list ( pr_wo_a1 . data . cpu ( ) . numpy ( ) [ : wn1 ] ) ) return pr_wo