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

Abierto
#3,999 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
30/100
Tipo de issue
Documentación
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
9.5k
Forks
4.5k
Merge medio
1 d 20 h
PR fusionados (30 d)
2

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pytorch/tutorials

Todos los issues de pytorch/tutorials

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.