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

Aperta
#3,999 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
30/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
9.5k
Fork
4.5k
Merge medio
1g 20h
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pytorch/tutorials

Tutte le issue di pytorch/tutorials

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.