# Wrong masked weights

**URL:** <https://community.deeplearning.ai/t/wrong-masked-weights/88570>\
**Category:** Sequence Models\
**Tags:** coursera-platform\
**Created:** [January 19, 2022, 10:08am UTC](https://community.deeplearning.ai/t/wrong-masked-weights/88570 "2022-01-19T10:08:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atul\_Chavan](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Atul\_Chavan](https://community.deeplearning.ai/u/Atul_Chavan)\
**Post date:** [January 19, 2022, 10:08am UTC](https://community.deeplearning.ai/t/wrong-masked-weights/88570/1 "2022-01-19T10:08:20Z")

</div>

Wrong masked weights, for assignments C5\_W4\_A1\_Transformer\_Subclass\_v1 Need support to understand what is going wrong here

---

<div class="post-metadata">

**Author:** ![Raghav\_Agrawal](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Raghav\_Agrawal](https://community.deeplearning.ai/u/Raghav_Agrawal)\
**Post date:** [January 19, 2022, 11:42am UTC](https://community.deeplearning.ai/t/wrong-masked-weights/88570/2 "2022-01-19T11:42:11Z")

</div>

Assuming you are at unique cell UNQ\_C3 (GRADED FUNCTION scaled\_dot\_product\_attention)  
-Make sure you are adding the mask to scaled tensor properly
