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

Offen
#3,999 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
30/100
Issue-Typ
Dokumentation
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
python

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
9.5k
Forks
4.5k
Ø Merge
1 T. 20 Std.
Gemergte PRs (30 T.)
2

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus pytorch/tutorials

Alle Issues in pytorch/tutorials

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.