# Attribute error : Week 3 lab Assignment Non max suppression

**URL:** <https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [November 9, 2022, 1:10am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466 "2022-11-09T01:10:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zbukhari](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/zbukhari/32/32657_2.png) [@zbukhari](https://community.deeplearning.ai/u/zbukhari)\
**Post date:** [November 9, 2022, 1:10am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466/1 "2022-11-09T01:10:35Z")

</div>

I’m getting this error when i tried to run my non max suppression block Can anyone help me with this?

 ![333](https://global.discourse-cdn.com/dlai/original/3X/7/b/7b6b40641e8f8bcfa140a581d105df4c643466a0.png)

---

<div class="post-metadata">

**Author:** ![Juan\_Olano](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/juan_olano/32/27125_2.png) [@Juan\_Olano](https://community.deeplearning.ai/u/Juan_Olano)\
**Post date:** [November 9, 2022, 1:27am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466/2 "2022-11-09T01:27:16Z")

</div>

Hi @zbukhari ,

Check the function you are using to get the max\_boxes\_tensor. Right now you are using K.variable. Since this is before your required code, you should have tf .variable. Not sure why you have K.variable there.

Try that and let me know.

Juan

---

<div class="post-metadata">

**Author:** ![zbukhari](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/zbukhari/32/32657_2.png) [@zbukhari](https://community.deeplearning.ai/u/zbukhari)\
**Post date:** [November 9, 2022, 1:30am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466/3 "2022-11-09T01:30:46Z")

</div>

Thank you juan,  
I solved it.

---

<div class="post-metadata">

**Author:** ![Juan\_Olano](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/juan_olano/32/27125_2.png) [@Juan\_Olano](https://community.deeplearning.ai/u/Juan_Olano)\
**Post date:** [November 9, 2022, 1:33am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466/4 "2022-11-09T01:33:07Z")

</div>

Great! Was it that library or something else?

---

<div class="post-metadata">

**Author:** ![zbukhari](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/zbukhari/32/32657_2.png) [@zbukhari](https://community.deeplearning.ai/u/zbukhari)\
**Post date:** [November 9, 2022, 1:34am UTC](https://community.deeplearning.ai/t/attribute-error-week-3-lab-assignment-non-max-suppression/228466/5 "2022-11-09T01:34:22Z")

</div>

yes i was using the wrong one
