https://segmentfault.com/a/1190000008793389 抽取 tf.slice(input_, begin, size, name=None):按照指定的下标范围抽取连续区域的子集 tf.gather(params, indices, validate_indices=None, name=None):按照指定的下标集合从axis=0中抽取子集,适合抽取不连续区域的子集  begin为下标起始位置,size为获取个数 input = [[[1, 1, 1], [2…
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…
Gokula Krishnan Santhanam认为,大部分深度学习框架都包含以下五个核心组件: 张量(Tensor) 基于张量的各种操作 计算图(Computation Graph) 自动微分(Automatic Differentiation)工具 BLAS.cuBLAS.cuDNN等拓展包 . . 一.张量的理解 本节主要参考自文章<开发丨深度学习框架太抽象?其实不外乎这五大核心组件> . 1.张量的解读 张量是所有深度学习框架中最核心的组件,因为后续的所有运算和优化算法都是基于张量进…
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…
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…
#链接:http://www.jianshu.com/p/a70c1d931395 import tensorflow as tf import tensorflow.contrib.slim as slim # tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None) # 除去name参数用以指定该操作的name,与方法有关的一共五个参数: # # input: # 指需要做卷积的输入图像,它…
参考 http://blog.csdn.net/wspba/article/details/53994649 https://www.ctolib.com/AdaIN-style.html Acknowledgement This project is inspired by many existing style transfer methods and their open-source implementations, including: Image Style Transfer Usi…
https://zhuanlan.zhihu.com/p/27238630 WholeFileReader # 我们用一个具体的例子感受tensorflow中的数据读取.如图, # 假设我们在当前文件夹中已经有A.jpg.B.jpg.C.jpg三张图片, # 我们希望读取这三张图片5个epoch并且把读取的结果重新存到read文件夹中. # 导入tensorflow import tensorflow as tf # 新建一个Session with tf.Session() as sess:…
参考 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…