Skip to content

Commit

Permalink
update model-construction.md (d2l-ai#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanzo00 authored Jun 30, 2021
1 parent 06ce368 commit 3ec5af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_deep-learning-computation/model-construction.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class MySequential(nn.Module):
super().__init__()
for block in args:
# 这里,`block`是`Module`子类的一个实例。我们把它保存在'Module'类的成员变量
# `_children` 中。`block`的类型是OrderedDict。
# `_modules` 中。`block`的类型是OrderedDict。
self._modules[block] = block
def forward(self, X):
Expand Down

0 comments on commit 3ec5af8

Please sign in to comment.