graykode / graykode/nlp-tutorial

Seq2Seq(Attention)Input Shape Question

Ouverte
#31 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
14.9k
Forks
3.9k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Seq2Seq(Attention)\Seq2Seq(Attention)-Tensor.py

The shape of the input should be [max_time, batch_size,...]. The input = tf. transpose (dec_inputs, [1, 0, 2]) has already been transformed. In tf. expand_dims (inputs [i], 1), the expansion is indeed one dimension. It seems that there should be zero dimension expansion here. Although the final shape is correct, whether it is intentional or not is here. What about a little trick?

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Read Seq2Seq(Attention)\Seq2Seq(Attention)-Tensor.py and trace the shapes through the transpose and tf.expand_dims(inputs[i], 1) expressions. Run the example and compare each intermediate shape with the stated [max_time, batch_size, ...] expectation. Done means deciding whether the expansion is intentional and documenting or correcting the behavior.

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

Évaluation

Stack technique
python, tensorflow
Domaine
machine-learning
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

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