From 080df8353b66935b4b783167264af25eb9e20390 Mon Sep 17 00:00:00 2001 From: Tony Zhao Date: Sun, 4 Feb 2024 19:56:36 +0800 Subject: [PATCH] Update sentiment-analysis-rnn.md remove a semicolon --- .../sentiment-analysis-rnn.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter_natural-language-processing-applications/sentiment-analysis-rnn.md b/chapter_natural-language-processing-applications/sentiment-analysis-rnn.md index c4c6485a4..521c3d17d 100644 --- a/chapter_natural-language-processing-applications/sentiment-analysis-rnn.md +++ b/chapter_natural-language-processing-applications/sentiment-analysis-rnn.md @@ -149,7 +149,7 @@ def init_weights(m): for param in m._flat_weights_names: if "weight" in param: nn.init.xavier_uniform_(m._parameters[param]) -net.apply(init_weights); +net.apply(init_weights) ``` ```{.python .input}