From 44b1164d8db5ad2613e20503b98aa09b6bc9ba7d Mon Sep 17 00:00:00 2001 From: gui1223 <167750254+gui1223@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:03:42 +0800 Subject: [PATCH] Update oo-design.md I noticed a potential typo in the code. It seems like 'Neural network is defined' should be changed to 'Neural network is not defined'. --- chapter_linear-regression/oo-design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter_linear-regression/oo-design.md b/chapter_linear-regression/oo-design.md index e78786f063..f00cce695f 100644 --- a/chapter_linear-regression/oo-design.md +++ b/chapter_linear-regression/oo-design.md @@ -194,7 +194,7 @@ class Module(d2l.nn_Module, d2l.HyperParameters): #@save raise NotImplementedError def forward(self, X): - assert hasattr(self, 'net'), 'Neural network is defined' + assert hasattr(self, 'net'), 'Neural network is not defined' return self.net(X) def plot(self, key, value, train):