![]() |
Introduction: Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment. Tensorflow.js tf.layers.stackedRNNCells() function is used to stack the RNN cell and make them to behave as a single cell. Syntax: tf.layers.stackedRNNCells(arge); Parameters: Above method accepts the following parameter:
Returns: It returns an object (StackedRNNCells). Example 1: In this example, we will see how simple RNNCells are stacked with tf.layers.stackedRNNCells() and work as single RNNCells: Javascript
Output: [null,8] Example 2: In this example, we will combine a number of cells into a stacked RNN cell with the help of stackedRNNCells and used to create RNN. Javascript
Output: Shape of output should be in : [null,8,16] Reference: https://js.tensorflow.org/api/latest/#layers.stackedRNNCells |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 9 |