截屏
>>> boxes = tf.random_normal([ 5])
>>> with s.as_default():
... s.run(boxes)
... s.run(keras.backend.argmax(boxes,axis=0))
... s.run(tf.reduce_max(boxes,axis=0))
...
array([ 0.37312034, -0.97431135, 0.44504794, 0.35789603, 1.2461706 ],
dtype=float32)
3
0.856236
.
为什么我得到 0.8564。我预计该值为 1.2461。因为 1.2461 很大,对吧?
I am getting correct answer if i use tf.constant.
But I am not getting correct answer while using radom_normal