![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
richard1230
这个作者很懒,什么都没留下…
展开
-
tensorflow语法1
文章目录矩阵乘法如何分配和控制PU进程安需要使用GPU资源tf日志功能的开启(经常用)和图优化(用的少)总的代码##tf的图概念g1 = tf.Graph() #tf里面有的首字母需要大写with g1.as_default(): c1 = tf.constant(1.0) #常量1.0赋给c1,此时直接打印是打印不出来的嗯,此时需要...原创 2019-07-28 23:55:28 · 218 阅读 · 1 评论 -
lstm反向传播推导
文章目录推导过程参考推导过程参考https://ilewseu.github.io/2018/01/06/LSTM%E5%8F%82%E6%95%B0%E6%9B%B4%E6%96%B0%E6%8E%A8%E5%AF%BC/原创 2019-08-29 10:03:20 · 805 阅读 · 5 评论 -
命名实体识别(1)
文章目录写一下最近正在做的一个命名实体识别项目,还没结束,这里先放一段代码main.py#系统包import osimport tensorflow as tfimport pickle#自定义包import data_loaderimport data_utilsimport model_utilsflags = tf.app.flags#训练相关的flags....原创 2019-09-30 23:58:33 · 819 阅读 · 0 评论 -
tf.where用法
tenflow 中tf.where()用法where(condition, x=None, y=None, name=None)condition, x, y 相同维度,condition是bool型值,True/False1.where(condition)的用法condition是bool型值,True/False返回值,是condition中元素为True对应的索引看个例子...原创 2019-10-10 11:09:19 · 271 阅读 · 0 评论