参考: http://blog.csdn.net/l18930738887/article/details/55000008 http://www.jianshu.com/p/19bb60b52dad http://blog.csdn.net/sinat_33761963/article/details/62433234 import tensorflow as tf import numpy as np def add_layer(inputs, in_size, out_size, n_la…
1 官方文档 https://www.tensorflow.org/api_docs/ 2 极客学院中文文档 http://www.tensorfly.cn/tfdoc/api_docs/python/array_ops.html 3 TensorFlow基础笔记(2) minist分类学习…
TensorFlow基础笔记(3) cifar10 分类学习 CIFAR-10 is a common benchmark in machine learning for image recognition. http://www.cs.toronto.edu/~kriz/cifar.html Code in this directory demonstrates how to use TensorFlow to train and evaluate a convolutional neural…
程序1 任务描述: x = 3.0, y = 100.0, 运算公式 x×W+b = y,求 W和b的最优解. 使用tensorflow编程实现: #-*- coding: utf-8 -*-) import tensorflow as tf # 声明占位变量x.y x = tf.placeholder("float",shape=[None,1]) y = tf.placeholder("float",[None,1]) # 声明变量 W = tf.Variabl…
http://blog.csdn.net/huachao1001/article/details/78502910 http://blog.csdn.net/u014432647/article/details/75276718 https://zhuanlan.zhihu.com/p/32887066 #coding:utf-8 #http://blog.csdn.net/zhuiqiuk/article/details/53376283 #http://blog.csdn.net/gan_p…
如果全部都要重定向的话每一条命令后面>>并不方便,可以这么做.在开头就声明 exec 1>>$log_file表示将脚本中所有的正确输出全部追加到$log_file,错误信息会输出到stdout.如果想把错误信息也输出到$log_file,那么只需要补一句 exec 2 >> $log_file就可以了 利用script命令记录下会话过程 在Unix系统维护中,有时候系统工程师希望能够记录下会话的过程.如在测试一个系统功能的时候,工程师就希望将测试的步骤都一一的纪录下来…
1. session对话控制 matrix1 = tf.constant([[3,3]]) matrix2 = tf.constant([[2],[2]]) product = tf.matmul(matrix1,matrix2) #类似于numpy的np.dot(m1,m2) 方法1: sess = tf.Session() result = sess.run(product) print(result) sess.close()>>>[[12]] 方法2: with tf.Sessi…
参考 http://blog.csdn.net/jsond/article/details/72667829 资源: 1.相关的vgg模型下载网址 http://www.vlfeat.org/matconvnet/models/beta16/imagenet-vgg-verydeep-19.mat 2.ImageNet 1000种分类以及排列 https://github.com/sh1r0/caffe-Android-demo/blob/master/app/src/main/assets/s…
参考 http://blog.csdn.net/rockingdingo/article/details/75452711 https://www.cnblogs.com/hrlnw/p/7007648.html https://www.cnblogs.com/hrlnw/p/7383951.html 1.下载tensorflow源码 git clone  https://github.com/tensorflow/tensorflow 2.安装bazel sudo apt-get update…
import numpy as np import tensorflow as tf #build a graph print("build a graph") #生产变量tensor a=tf.constant([[1,2],[3,4]]) b=tf.constant([[1,1],[0,1]]) #获取tensor的数据类型和张量维度 print("a.dtype",a.dtype) print(a.get_shape()) print("type o…