tensorflow部分函数含义

xiaoxiao2021-02-28  47

一、softmax

x = tf.constant([[1, 2, 3]], dtype=tf.float32) r = tf.nn.softmax(x) s = tf.Session() print(s.run(r))

运行结果:

[[0.09003057 0.24472848 0.66524094]]

转载请注明原文地址: https://www.6miu.com/read-2622521.html

最新回复(0)