# C4/W3/yolo\_filter\_boxes

**URL:** <https://community.deeplearning.ai/t/c4-w3-yolo-filter-boxes/63431>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [November 12, 2021, 2:05pm UTC](https://community.deeplearning.ai/t/c4-w3-yolo-filter-boxes/63431 "2021-11-12T14:05:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel2412](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Daniel2412](https://community.deeplearning.ai/u/Daniel2412)\
**Post date:** [November 12, 2021, 2:05pm UTC](https://community.deeplearning.ai/t/c4-w3-yolo-filter-boxes/63431/1 "2021-11-12T14:05:16Z")

</div>

Hello everybody,

I have a problem with the first graded function this week (yolo\_filter\_boxes). I get a TypeError: “Cannot convert 0.5 to EagerTensor of dytpe int64”.

I think the problem is “box\_scores” , “box\_classes”, “box\_class\_scores” have all the dtype int32.

But in the description of the tf.boolean\_mask function, the type is also int 32.

Unfortunately, I have no idea how to fix this error.

Can someone help me?

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://community.deeplearning.ai/u/paulinpaloalto)\
**Post date:** [November 12, 2021, 6:27pm UTC](https://community.deeplearning.ai/t/c4-w3-yolo-filter-boxes/63431/2 "2021-11-12T18:27:35Z")

</div>

If it makes you feel any better, you are far from the first person to hit this particular error. Searching for a literal piece of that error will find you lots of hits. E.g. [this one](https://community.deeplearning.ai/t/c4-w3-excercise-4-typeerror-cannot-convert-0-5-to-eagertensor-of-dtype-int32/58898) or [this one](https://community.deeplearning.ai/t/course-4-week-3-part-1-yolo-filter-boxes-function-problem/13726).

---

<div class="post-metadata">

**Author:** ![Daniel2412](https://avatars.discourse-cdn.com/v4/letter/d/7c8e57/32.png) [@Daniel2412](https://community.deeplearning.ai/u/Daniel2412)\
**Post date:** [November 15, 2021, 4:46pm UTC](https://community.deeplearning.ai/t/c4-w3-yolo-filter-boxes/63431/3 "2021-11-15T16:46:41Z")

</div>

Thank you!

I found the mistake.
