版权声明:本博客所有文章版权归博主刘兴所有,转载请注意来源 https://blog.csdn.net/AI_LX/article/details/88726781
import tensorflow as tf
a=tf.constant(5)
b=tf.constant(3)
res1=tf.divide(a,b)
res2=tf.div(a,b)
with tf.Session() as sess:
print sess.run(res1)
print sess.run(res2)
输出:
1.66666666667
1