# Size of W in \[9\] in C2\_W1\_Lab02\_CoffeeRoasting\_TF?

**URL:** <https://community.deeplearning.ai/t/size-of-w-in-9-in-c2-w1-lab02-coffeeroasting-tf/183634>\
**Category:** Advanced Learning Algorithms\
**Tags:** week-module-1\
**Created:** [August 12, 2022, 5:00pm UTC](https://community.deeplearning.ai/t/size-of-w-in-9-in-c2-w1-lab02-coffeeroasting-tf/183634 "2022-08-12T17:00:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [August 12, 2022, 5:14pm UTC](https://community.deeplearning.ai/t/size-of-w-in-9-in-c2-w1-lab02-coffeeroasting-tf/183634/2 "2022-08-12T17:14:30Z")

</div>

Each weight matrix connects two adjacent layers.

- So the first weight matrix has the size of the number of input features and the number of hidden layer units.

- The second weight matrix has the size of the number of hidden layer units and the number of outputs.

---

_[View the full topic](https://community.deeplearning.ai/t/size-of-w-in-9-in-c2-w1-lab02-coffeeroasting-tf/183634)._
