You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/10/19 17:17:08 UTC

[GitHub] [incubator-mxnet] szha commented on a change in pull request #20384: [v2.0] RNN: use rnn_params

szha commented on a change in pull request #20384:
URL: https://github.com/apache/incubator-mxnet/pull/20384#discussion_r732084197



##########
File path: python/mxnet/gluon/utils.py
##########
@@ -504,3 +504,60 @@ def _check_block_input_np_ndarrays(inputs):
         for i in inputs:
             _check_block_input_np_ndarrays(i)
     # pylint: enable=no-else-raise
+
+
+# pylint: disable=too-many-nested-blocks
+def split_rnn_params(param, mode, num_layers, input_size, hidden_size, bidirectional, projection_size=None):
+    """Split rnn layer parameter into weight and bias in different layer."""

Review comment:
       Add docstring




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@mxnet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org