Feedback about NLP From Scratch: Translation with a Sequence to Sequence Network and Attention

Aberta
#3,999 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
30/100
Tipo de issue
Documentação
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
python

Direção de pesquisa

The questions concern the EncoderRNN and DecoderRNN classes in the intermediate seq2seq translation tutorial source, which is the file behind the linked page. Read the encoder's embedding and dropout lines and the decoder's embedding and relu lines, then decide whether the tutorial text needs an explanation of those choices. Done means the questions are answered in the thread or the prose is updated to explain the shared hidden_size, the encoder dropout and the decoder relu. Code changes are not implied.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

There is the following issue on this page: https://docs.pytorch.org/tutorials/intermediate/seq2seq_translation_tutorial.html

Hello PyTorch folks,
Great tutorial here -- it really helped me prepare a lab session for a course that I TA for.

A few questions here on the code:

  1. You are setting the embedding size and GRU hidden size to use the same hidden_size. Is there a reason that you do not allow two separate hyperparameters for those sizes?
  2. In the encoder, why is there a Dropout after the input embedding?
  3. In the decoder, why is there a ReLU after the output embedding?

Thanks,
Lonny

Linguagem predominante
Python
Estrelas
9.5k
Forks
4.5k
Merge médio
1d 20h
PRs com merge (30d)
2

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de pytorch/tutorials

Todas as issues de pytorch/tutorials

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.