tf.square,求平方和

用例对应的源代码,觉得有帮助可以Star

import tensorflow as tf

#  tf.square(
#      x,
#      name=None
#      )
#
#  Computes square of x element-wise.

with tf.Session() as sess:
    print(sess.run(tf.square(3))) # 9
发布了758 篇原创文章 · 获赞 35 · 访问量 60万+

猜你喜欢

转载自blog.csdn.net/kelsel/article/details/83691583