Skip to content

nndl-practice.pdf的第272页,代码行第14行,max_len = max(max_len, len(input_id)) 应该改为 max_len = max(max_len, len(input_ids[-1])) #32

Description

@marvin263

如标题,从而使得 每一个input_ids[i] 的长度 不超过max_seq_len。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions