Skip to content

The role of 'assert cur_len == total_len' in the code #248

@Edisonhimself

Description

@Edisonhimself

What a great job! I would like to ask what the function of

    if cur_len < tokenizer.model_max_length:
        assert cur_len == total_len

in collate_fn of dataset.cy is in the code, as I have observed that omitting this part of the code can run normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions