Skip to content

Commit 17b8b4d

Browse files
Shuailongsoumith
authored andcommitted
minor math equation error (pytorch#85)
add "-" sign
1 parent 73466e0 commit 17b8b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/nlp/word_embeddings_tutorial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def forward(self, inputs):
290290
# and :math:`w_{i+1}, \dots, w_{i+N}`, referring to all context words
291291
# collectively as :math:`C`, CBOW tries to minimize
292292
#
293-
# .. math:: -\log p(w_i | C) = \log \text{Softmax}(A(\sum_{w \in C} q_w) + b)
293+
# .. math:: -\log p(w_i | C) = -\log \text{Softmax}(A(\sum_{w \in C} q_w) + b)
294294
#
295295
# where :math:`q_w` is the embedding for word :math:`w`.
296296
#

0 commit comments

Comments
 (0)