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

Ouverte
#3,999 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 2 jours

Personne n'a encore pris cette issue.

Évaluation

Difficulté
2/5
Temps estimé
1-3 heures
Accessibilité débutants
30/100
Type d'issue
Documentation
Clarté
À clarifier
Activité
Active
Stack technique
python

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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

Langage dominant
Python
Étoiles
9.5k
Forks
4.5k
Merge moyen
1 j 20 h
PR mergées (30 j)
2

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de pytorch/tutorials

Toutes les issues de pytorch/tutorials

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.