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):