LSTM详解及tensorflow API num_hidden的确切含义

RNN/LSTM比CNN难理解,LSTM介绍最有名的当属colah http://colah.github.io/posts/2015-08-Understanding-LSTMs/这篇及其各种中文版。

但是。。。。。。。。。。。。。。。

https://www.zybuluo.com/hanbingtao/note/581764 这篇比colah的牛逼细致多了!!!强烈建议好好看,介绍的非常详细,输入输出的shape也解释的很清楚,x,h,c本质都是向量,那么tensorflow API BasicLSTMCell的num_hidden是什么就很清楚了

就是ht-1/ht向量的维度(c一般和h维度相同)

stackoverflow上这类问题很多,随便摘一个:

https://stackoverflow.com/questions/37901047/what-is-num-units-in-tensorflow-basiclstmcell:

If you have an input x of shape [T, 10], you will feed the LSTM with the sequence of values from t=0 to t=T-1, each of size 10.
At each timestep, you multiply the input with a matrix of shape [10, n_hidden], and get a n_hidden vector.



  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值