Commit 840759b8 authored by Neel Kant's avatar Neel Kant
Browse files

Lint megatron/data/dataset_utils.py

parent 63262827
Loading
Loading
Loading
Loading
+172 −171
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ def truncate_segments(tokens_a, tokens_b, len_a, len_b, max_num_tokens, np_rng):
            tokens.pop()
    return True


def create_tokens_and_tokentypes(tokens_a, tokens_b, cls_id, sep_id):
    """Merge segments A and B, add [CLS] and [SEP] and build tokentypes."""