# How to do with Nan values in the output of the net?

**URL:** <https://community.konduit.ai/t/how-to-do-with-nan-values-in-the-output-of-the-net/1835>\
**Category:** DL4J\
**Created:** [April 26, 2022, 8:22am UTC](https://community.konduit.ai/t/how-to-do-with-nan-values-in-the-output-of-the-net/1835 "2022-04-26T08:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cqiaoYc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/cqiaoyc/32/738_2.png) [@cqiaoYc](https://community.konduit.ai/u/cqiaoYc)\
**Post date:** [April 26, 2022, 8:22am UTC](https://community.konduit.ai/t/how-to-do-with-nan-values-in-the-output-of-the-net/1835/1 "2022-04-26T08:22:02Z")

</div>

There are NaN values in the output of the net, how to do with them in the custom Loss function?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [April 28, 2022, 9:51pm UTC](https://community.konduit.ai/t/how-to-do-with-nan-values-in-the-output-of-the-net/1835/2 "2022-04-28T21:51:24Z")

</div>

@cqiaoYc That is an indicator of underflow. Could you post more about your loss function?
