The tensorflow simplest calculate

import tensorflow as tf

#print("hello word")

a=tf.constant(88)

b=tf.constant(9)

result=tf.add(a,b,name=None)

op=tf.global_variables_initializer()

with tf.Session() as sess:
sess.run(op)
print(sess.run(result))

 

https://files.cnblogs.com/files/tuozizhang/tutorials.rar

posted on 2020-04-09 21:52  拓子  阅读(105)  评论(0编辑  收藏  举报

导航