You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buckets[idx][1].append([label[ind] * label_size + label[ind + 1] for ind in range(0, cur_len)] + [
label[cur_len] * label_size + pad_label] + [pad_label * label_size + pad_label] * (
thresholds[idx] - cur_len_1))
there is a part of the code where targets are formed using the above function in construct_bucket_vb
what is it happening in this part of code?
You can read the code part crit.forward(scores, tg_v, mask_v) . The author preprocess the tags for easily calculating the score of golden sentence which is part of total loss. (Main idea: transform the 2-d index into 1-d.)
there is a part of the code where targets are formed using the above function in
construct_bucket_vb
what is it happening in this part of code?
The text was updated successfully, but these errors were encountered: