用tensorflor 写一段代码
import tensorflow as tf
创建两个常量
a = tf.constant(2) b = tf.constant(3)
创建一个计算节点
c = tf.add(a, b)
创建一个会话
with tf.Session() as sess: # 执行计算节点 result = sess.run(c) print(result)
原文地址: https://www.cveoy.top/t/topic/i9lB 著作权归作者所有。请勿转载和采集!