# Regarding the sum of softmax values exceeding 1.0

**URL:** <https://discuss.ai.google.dev/t/regarding-the-sum-of-softmax-values-exceeding-1-0/25492>\
**Category:** General Discussion\
**Tags:** api, help\_request\
**Created:** [March 3, 2023, 2:25am UTC](https://discuss.ai.google.dev/t/regarding-the-sum-of-softmax-values-exceeding-1-0/25492 "2023-03-03T02:25:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taiyo.bass4242](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/taiyo.bass4242/32/9771_2.png) [@taiyo.bass4242](https://discuss.ai.google.dev/u/taiyo.bass4242)\
**Post date:** [March 3, 2023, 2:25am UTC](https://discuss.ai.google.dev/t/regarding-the-sum-of-softmax-values-exceeding-1-0/25492/1 "2023-03-03T02:25:11Z")

</div>

In a 1000 class classification task, when using the softmax function, Top1 is 1.0 and Top2 is greater than or equal to 0. This makes the total more than 1.0. Does anyone know anything about this?  
The environment is tensorflow2.6.1 and python3.8.10.

```auto
Top1 - score:1.00000000000000000000000000000000
Top2 - score:0.00000002750548944163710984867066
Top3 - score:0.00000000408126732409641590493266
Top4 - score:0.00000000309478398463625126169063
Top5 - score:0.00000000193547711191399685048964

```

---

<div class="post-metadata">

**Author:** ![chunduriv](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chunduriv](https://discuss.ai.google.dev/u/chunduriv)\
**Post date:** [March 3, 2023, 10:49am UTC](https://discuss.ai.google.dev/t/regarding-the-sum-of-softmax-values-exceeding-1-0/25492/3 "2023-03-03T10:49:19Z")

</div>

@taiyo.bass4242,

Welcome to the Tensorflow Forum!

This is unintended behavior. Could you please provide a standalone code to replicate the issue reported here?

Thank you!
