Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[Perl] Bitrot fix. Viz and two flaky tests. #9414
Conversation
- mx->autograd->record(sub { | ||
- $net->(mx->nd->ones([2, 3, 10]))->backward(); | ||
- }); | ||
+# my $net = gluon->nn->Sequential(); |
sergeykolychev
Jan 14, 2018
Contributor
Just commented it for now so I'll remember to return to this later. There was one test failure in that part that was never reproduced after that and I'd like to get to the bottom of it later.
Currently I am working on adding sparse support to perl and don't have much time for this currently so I just commented the block.
eric-haibin-lin
Jan 14, 2018
Contributor
Just curious, anyone requested the sparse feature for perl?
sergeykolychev
merged commit 171d717
into
apache:master
Jan 14, 2018
1 check passed
@eric-haibin-lin
Not yet.
I use mxnet at work for text classification and see potential for the
sparse feature in my work, and besides that, this feature is one of largest
disparities between Perl and Python apis and I try my best to keep them
similar.
…On Sat, Jan 13, 2018 at 5:03 PM, Haibin Lin ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In perl-package/AI-MXNet/t/test_gluon_rnn.t
<#9414 (comment)>
:
> @@ -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();
Just curious, anyone requested the sparse feature for perl?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#9414 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYSk2IW8PYwF4C4PzIoESCcrOFlX1hL6ks5tKVJngaJpZM4RdaYg>
.
|
sergeykolychev commentedJan 13, 2018
•
Edited 5 times
-
sergeykolychev
Jan 14, 2018
-
sergeykolychev
Jan 14, 2018
-
sergeykolychev
Jan 14, 2018
-
sergeykolychev
Jan 14, 2018
-
sergeykolychev
Jan 14, 2018
Description
(Brief description on what this PR is about)
Checklist
Essentials
make lint
)Changes
Comments