在使用tensorboard的过程中出现了一下几个问题: TypeError: GetNext() takes 1 positional argument but 2 were given 解决方案: pip install tb-nightlypip install -U protobuf 在使用 ...
分类:
系统相关 时间:
2018-07-27 23:17:27
阅读次数:
895
tensorflow中的tensor值的获取: ...
分类:
其他好文 时间:
2018-07-23 12:34:33
阅读次数:
1261
ParisGabriel ParisGabriel 每天坚持 一天一篇 点个订阅吧 灰常感谢 当个死粉也阔以 week summer: Python人工智能从入门到精通 函数式编程: 是指用一系列函数解决问题 每一个函数完成细小的功能,一系列函数的任意组合可以完成 大问题 函数仅接受输入并产生输入, ...
分类:
编程语言 时间:
2018-07-22 20:51:07
阅读次数:
155
1.MNIST数据库下载好后,在tensorflow/examples/tutorials/mnist/下建立文件夹MNIST_data即可运行本程序 2.关键在与理解Operation,Tensor,Graph,只有执行session.run()时操作才真正执行 ...
分类:
其他好文 时间:
2018-07-21 17:05:05
阅读次数:
149
import numpy as np import tensorflow as tf import cv2 ###导入图像为numpy数组 def load_image_into_numpy_array(image): (im_width, im_height) = image.size retur ...
分类:
其他好文 时间:
2018-07-21 16:53:51
阅读次数:
593
一、首先说下我在安装TensorFlow的过程中遇到的坑: 1、python的版本是3.5的版本,因为TensorFlow好像只支持到3.5现在。然后python需要安装64位的安装包,如果安装的是32位的,会显示找不到合适的版本。 如果道友没有安装包,可以从下面下载。 python3.5安装包 2 ...
分类:
其他好文 时间:
2018-07-21 15:07:46
阅读次数:
158
tensorflow as tf tf.reshape(tensor, shape, name=None) reshape作用是将tensor变换为指定shape的形式。 其中shape为一个列表形式,特殊的一点是列表中可以存在-1。-1代表的含义是不用我们自己指定这一维的大小,函数会自动计算(根据 ...
分类:
其他好文 时间:
2018-07-20 22:31:45
阅读次数:
343
import tensorflow as tf # tensorflow还支持变量的定义 var = tf.Variable(3) print(var) # # 也可以指定类型和名字 var1 = tf.Variable(4, name="mmp", dtype=tf.float64) print(... ...
分类:
其他好文 时间:
2018-07-20 11:38:02
阅读次数:
144
import tensorflow as tf # 之前也说过,直接打印,只能得到状态,是得不到值的 c = tf.constant([[1,2],[2,3]],name='const_1',dtype=tf.int64) print(c) # Tensor("const_1:0", shape=(... ...
分类:
其他好文 时间:
2018-07-20 11:32:58
阅读次数:
162
import tensorflow as tf const = tf.constant(3) print(const) # Tensor("Const:0", shape=(), dtype=int32) a = 3 print(a) # 3 # 可以看到如果直接打印const是不会输出3这个结果的... ...
分类:
其他好文 时间:
2018-07-20 01:15:01
阅读次数:
164