LSTM()和LSTMCell()有什么区别? [英] What's the difference between LSTM() and LSTMCell()?

查看:1458
本文介绍了LSTM()和LSTMCell()有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经检查了两个函数的源代码,似乎LSTM()总体上构成了LSTM网络,而LSTMCell()仅返回一个单元格.

I've checked the source code for both functions, and it seems that LSTM() makes the LSTM network in general, while LSTMCell() only returns one cell.

但是,在大多数情况下,人们在程序中仅使用一个LSTM单元.这是否意味着当您只有一个LSTM Cell(例如简单的Seq2Seq)时,调用LSTMCell()和LSTM()不会有什么区别?

However, in most cases people only use one LSTM Cell in their program. Does this mean when you have only one LSTM Cell (ex. in simple Seq2Seq), calling LSTMCell() and LSTM() would make no difference?

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆