- 博客(4)
- 收藏
- 关注
原创 tf.reduce_mean(y)
求和平均 import tensorflow as tf x=[1,3] y=tf.square(x) z=tf.reduce_mean(y) with tf.Session() as sess: print(sess.run(y)) print(sess.run(z)) 结果: [1 9] 5
2018-12-20 19:31:20
295
原创 tf.square(x, name=None)
tf.square(x, name=None) 对x内的所有元素进行平方操作 import tensorflow as tf x=[1,3] y=tf.square(x) with tf.Session() as sess: print(sess.run(y)) 结果如下: C:\Users\JIN\Anaconda3\python.exe D:/tensorflow练习/练习.py 2...
2018-12-20 19:19:42
428
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人