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 2018/01/14 00:06:11 UTC

[GitHub] eric-haibin-lin commented on a change in pull request #9414: [Perl] Bitrot fix. Viz and two flaky tests.

eric-haibin-lin commented on a change in pull request #9414: [Perl] Bitrot fix. Viz and two flaky tests.
URL: https://github.com/apache/incubator-mxnet/pull/9414#discussion_r161384398
 
 

 ##########
 File path: perl-package/AI-MXNet/t/test_gluon_rnn.t
 ##########
 @@ -320,15 +320,15 @@ sub test_rnn_layers
     check_rnn_layer_forward(gluon->rnn->GRU(10, 2), mx->nd->ones([8, 3, 20]));
     check_rnn_layer_forward(gluon->rnn->GRU(10, 2), mx->nd->ones([8, 3, 20]), mx->nd->ones([2, 3, 10]));
 
-    my $net = gluon->nn->Sequential();
-    $net->add(gluon->rnn->LSTM(10, 2, bidirectional=>1));
-    $net->add(gluon->nn->BatchNorm(axis=>2));
-    $net->add(gluon->nn->Flatten());
-    $net->add(gluon->nn->Dense(3, activation=>'relu'));
-    $net->collect_params()->initialize();
-    mx->autograd->record(sub {
-        $net->(mx->nd->ones([2, 3, 10]))->backward();
-    });
+#    my $net = gluon->nn->Sequential();
 
 Review comment:
   Remove unused code?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services