Skip to content

how to generate attention mask seperately? #52

@Liujingxiu23

Description

@Liujingxiu23

I want to use my own input_embedings(or my own tokenizer system) instead of input_ids, but I do not know how to generate encoder_attention_mask and decoder_attention_mask bymyself, is there any code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions