
tensorflow
豆腐不打烊
热爱无人驾驶相关技术,希望能认识更多的志同道合的朋友。我的邮箱:ngsford@qq.com
展开
-
tensorflow学习三,我的笔记,placeholder和feed_dict
tf.placeholder 有点像是函数,定义完后,再通过feed_dict喂入数据,不需要初始化。其中,shape和name属于可选参数,可以不定义。import tensorflow as tfa=tf.placeholder(tf.float32,name="a")b=tf.placeholder(tf.float32,name="b")c=tf.multipl...原创 2019-07-07 16:59:48 · 419 阅读 · 0 评论 -
tensorflow学习三,我的笔记,tensorboard
tensorboard的简单应用import tensorflow as tftf.reset_default_graph()logdir="C:/tensorflow_log"value =tf.Variable( 0, name= "value" )value1 =tf.Variable( 0, name= "value" )one =tf.constant( 1 )...原创 2019-07-08 15:38:44 · 168 阅读 · 0 评论 -
tensorflow学习一,我的笔记,计算图,tensor等基础概念
今天是第一天。import tensorflow as tfhello=tf.constant("hello,world!") #创建一个常值运算,作为一个节点加入默认计算图sess=tf.Session() # 创建一个tensorflow会话print(sess.run(hello))输出:b‘hello,world‘ ,其中b代表Bytes literals(字节文...原创 2019-07-06 01:20:32 · 178 阅读 · 0 评论 -
tensorflow学习二,我的笔记,会话,常量与变量
会话,常量与变量会话:import tensorflow as tfa=tf.constant(6,tf.int32,name="a")b=tf.constant(2,tf.int32,name="b")c=tf.add(a,b,name="c")with tf.Session as sess: print(sess.run(c))这样的话,就可以不写...原创 2019-07-06 23:41:32 · 219 阅读 · 0 评论