How can I use MultiRNNCell with cell= ConvLSTMCell?

北战南征 提交于 2019-12-13 05:08:24

问题


How can I build a multi-layer neural network with the different number of filters in each layer with cell = ConvLSTMCell() and MultiRNNCell?


回答1:


cell_1 = ConvLSTMCell(...params...)
cell_2 = ConvLSTMCell(...params...)

multi_cell = MultiRNNCell([cell_1, cell_2], ...other params...)

Then you can call tensorflow dynamic_rnn(..) api with multi_cell and required parameters.



来源:https://stackoverflow.com/questions/48942122/how-can-i-use-multirnncell-with-cell-convlstmcell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!