# Parameter Initialization

**URL:** <https://d2l.discourse.group/t/parameter-initialization/8090>\
**Category:** pytorch\
**Created:** [April 13, 2022, 10:31pm UTC](https://d2l.discourse.group/t/parameter-initialization/8090 "2022-04-13T22:31:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![astonzhang](https://yyz2.discourse-cdn.com/free1/user_avatar/d2l.discourse.group/astonzhang/32/52_2.png) [@astonzhang](https://d2l.discourse.group/u/astonzhang)\
**Post date:** [April 13, 2022, 10:31pm UTC](https://d2l.discourse.group/t/parameter-initialization/8090/1 "2022-04-13T22:31:01Z")

</div>

[https://d2l.ai/chapter\_builders-guide/init-param.html](https://d2l.ai/chapter_builders-guide/init-param.html)

---

<div class="post-metadata">

**Author:** ![jleeleee](https://yyz2.discourse-cdn.com/free1/user_avatar/d2l.discourse.group/jleeleee/32/4904_2.png) [@jleeleee](https://d2l.discourse.group/u/jleeleee)\
**Post date:** [July 18, 2022, 1:57pm UTC](https://d2l.discourse.group/t/parameter-initialization/8090/2 "2022-07-18T13:57:13Z")

</div>

For most of the examples, since the network was already initialized and computed on `X` in the first subsection, the example conditional `if type(module) == nn.LazyLinear` will not work since the data type was converted to `nn.Linear`, and if the network is not instantiated, then the `net.apply(...)` method will not work either

---

<div class="post-metadata">

**Author:** ![Coen\_S](https://yyz2.discourse-cdn.com/free1/user_avatar/d2l.discourse.group/coen_s/32/5083_2.png) [@Coen\_S](https://d2l.discourse.group/u/Coen_S)\
**Post date:** [August 6, 2022, 12:10pm UTC](https://d2l.discourse.group/t/parameter-initialization/8090/3 "2022-08-06T12:10:32Z")

</div>

Yes, this section seems to have some errors.
