pytorch/examples

word_language_model with torch.nn.modules.transformer

Aberta

#1.112 aberto em 9 de fev. de 2023

 (3 comentários) (0 reação) (0 responsável)Python (9.429 forks)batch import
docsgood first issuenlp

Métricas do repositório

Stars
 (21.634 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

The torch.nn.modules.transformer documentation says the word_language_model example in this repo is an example of its use. But it seems to instead DIY a transformer and uses that instead. Is this intentional? I would offer my help to write it for torch.nn.modules.transformer but I'm here to learn how to use it.

Guia do colaborador