tf.argmax()

test = np.array([[1, 2, 3], [2, 3, 4], [5, 4, 3], [8, 7, 2]])
np.argmax(test, 0)   #输出:array([3, 3, 1]
np.argmax(test, 1)   #输出:array([2, 2, 0, 0]

posted @ 2019-01-16 14:58  simple_wxl  阅读(163)  评论(0编辑  收藏  举报