人工智能深度学习入门练习之(6)求和方法2

时间:2020-06-16 16:47:23   收藏:0   阅读:42

代码实现:

import tensorflow as tf
assert tf.__version__.startswith(2.)
a=tf.constant(2.)
b=tf.constant(4.)
print(f{a}+{b}={a+b})

执行结果:

技术分享图片

 

原文:https://www.cnblogs.com/huanghanyu/p/13141374.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!