当前位置:网站首页>举例说明tf中LSTMCell的cell、num_unit是什么意思
举例说明tf中LSTMCell的cell、num_unit是什么意思
2022-06-09 03:51:00 【陈壮实的编程生活】
1. 对于cell的解释

LSTM一般都会一连串的小团团,这一个个小团团就表示一个cell。如上图所示。
2. 对num_units参数的解释

上图中,我们很多步计算中都有用到W, 其实num_units就表示线性层的隐藏节点个数,也即输出的维度。
例如:
num_units = 128, 就表示我们输出的维度是[128, 1](也有可能是[1, 128],看具体需要,两者只差一个转置,没有太大的本质区别)。
我们的输入xt的维度为[28, 1], 那么 [ h t − 1 , x t ] = [ 128 + 28 , 1 ] = [ 156 , 1 ] [h_{t-1},x_t]=[128+28, 1]=[156,1] [ht−1,xt]=[128+28,1]=[156,1],所以我们的W的维度为[128, 156]
总之,参数num_units = 128,就表示每一个cell的输出维度为[128, 1] 或 [1, 128]
边栏推荐
- 服务器注册使用
- 基於FPGA的VGA顯示彩條、字符、圖片
- It becomes obsolete when you use it ~websecurityconfigureradapter
- php反序列化复现——bugku 点login没反应
- With a monthly salary of nearly 10000 yuan and 3 years of career change test as a sales assistant, how can I get multiple offers with 0 experience?
- 几何运用题
- JS逆向字体反爬,某供应商平台反爬实践
- 强烈推荐这款神器,一行命令将网页转PDF!
- The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~
- 【LeetCode】第48天 - 1037. 有效的回旋镖
猜你喜欢
![[leetcode] day 48 - 1037 Effective boomerang](/img/7f/9d353641ce62aaf52e26c07361e0cb.png)
[leetcode] day 48 - 1037 Effective boomerang

Rich color changes

基于FPGA的VGA显示彩条、字符、图片

Large factory outsourcing or self research company? How to choose a job for a tester?

基于PyQt5完成的PDF合并

Five highlights of wwdc2022 lock screen, weather kit, swiftui, collaboration function, apple payment

从刚入测试界到薪资翻倍:聊聊我的测试进阶历程,值得借鉴

基于PyQt5完成的抠图功能-程序实现

VGA display of color bar, character and picture based on FPGA

National Natural Science Foundation Project query website
随机推荐
苹果宣布 2022 年 Apple 设计大奖得主
Dapr 1.7 UNIX domain socket he's here
Software Test Engineer, to what extent can I get 1W in a month?
常用端口记录
Final assignment of Web Design - website of XXX company (including navigation bar, rotation chart, etc.)
How to write a blueprint for the data center
Why common read SQL is sent to the master instance in the distributed dble read / write separation scenario
Kotlin基础从入门到进阶系列讲解(入门篇) 文件存储的基本使用
Fault analysis | a special scenario in MySQL where a new user cannot log in
The key points of writing test cases for the first time
【5月考试】ORACLE OCP 19C 通过
Dapr 1.7 之 Unix Domain socket 他来了
Cereals mall -day13- goods on the shelves
Controversial Xu Beihong's paintings and the copyright dispute of Digital Collections
It becomes obsolete when you use it ~websecurityconfigureradapter
SQL audit | here are the most commonly used SQL development rules for mysql/oracle
『C语言』面试管:说下各个字符串函数功能,我:不知道。面试官:小伙子学会了再来面试吧。
[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)
The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~
From just entering the testing industry to doubling my salary: talk about my advanced testing experience, which is worth learning from