Bug in TensorFlow reduce_max for negative infinity?
<p>Using <code>tf.maximum</code> with negative inf inputs as follows:</p>

<pre><code>tf.maximum(-math.inf, -math.inf).eval()
</code></pre>

<p>gives the expected result <code>-inf</code></p>

<p>However, <code>tf.reduce_max</code>, on the same inputs:</p>

<pre><code>tf.reduce_max([-math.inf, -math.inf]).eval()
</code></pre>

<p>gives: <code>-3.40282e+38</code> which is the min float32.</p>

<p>For positive infinity inputs, both functions result in <code>inf</code>. Is this a bug?</p>

<p>This turned out to be a bug in Eigen which has already been fixed and pushed out to TensorFlow.</p>

<p>The issue can be tracked here:
<a href="https://github.com/tensorflow/tensorflow/issues/4131" rel="nofollow">https://github.com/tensorflow/tensorflow/issues/4131</a></p>

python tensorflow