Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion docs/install/validate_mxnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,25 @@ Please contribute an example!

### Perl

Please contribute an example!
Start the pdl2 terminal.

```bash
$ pdl2
```

Run a short *MXNet* Perl program to create a 2X3 matrix of ones, multiply each element in the matrix by 2 followed by adding 1. We expect the output to be a 2X3 matrix with all elements being 3.

```perl
pdl> use AI::MXNet qw(mx)
pdl> $a = mx->nd->ones([2, 3])
pdl> $b = $a * 2 + 1
pdl> print $b->aspdl

[
[3 3 3]
[3 3 3]
]
```

### R

Expand Down
3 changes: 3 additions & 0 deletions perl-package/AI-MXNet-Gluon-Contrib/Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Perl extension AI::MXNet::Gluon::Contrib

1.33 Thu Oct 4 13:25:56 PDT 2018
- Fixed kwalitee issues.

1.32 Sun Jul 15 12:12:15 PDT 2018
- Missing POD fixes.

Expand Down
4 changes: 2 additions & 2 deletions perl-package/AI-MXNet-Gluon-Contrib/META.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
},
"runtime" : {
"requires" : {
"AI::MXNet" : "1.31",
"AI::MXNet" : "1.33"
}
},
"test" : {
"requires" : {}
}
},
"release_status" : "stable",
"version" : "1.32"
"version" : "1.33"
}
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet-Gluon-Contrib/META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ no_index:
- inc
requires:
AI::MXNet: '1.31'
version: '1.32'
version: '1.33'
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet-Gluon-Contrib/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ my %WriteMakefileArgs = (
"AI::MXNet" => "1.31",
},
"TEST_REQUIRES" => {},
"VERSION" => "1.32",
"VERSION" => "1.33",
"test" => {
"TESTS" => "t/*.t"
}
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet-Gluon-Contrib/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This archive contains the distribution AI-MXNet-Gluon-Contrib,
version 1.32:
version 1.33:

Perl interface to MXNet Gluon Contib modules, a collection of supplemental Gluon blocks.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@ use strict;
use warnings;
use AI::MXNet;
use AI::MXNet::Gluon::Contrib::NN::BasicLayers;
our $VERSION = '1.32';
our $VERSION = '1.33';
=head1 NAME

AI::MXNet::Gluon::Contrib - A collection of supplemental Gluon blocks.
=cut

1;
1;

=head1 AUTHOR

Sergey Kolychev, <sergeykolychev.github@gmail.com>

=head1 COPYRIGHT & LICENSE

This library is licensed under Apache 2.0 license L<https://www.apache.org/licenses/LICENSE-2.0>

=cut
3 changes: 3 additions & 0 deletions perl-package/AI-MXNet-Gluon-ModelZoo/Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Revision history for Perl extension AI::MXNet::Gluon::ModelZoo

1.33 Thu Oct 4 13:25:56 PDT 2018
- Fixed kwalitee issues.

1.32 Sun Aug 5 14:25:31 PDT 2018
- Updated vgg16/19 models

Expand Down
5 changes: 3 additions & 2 deletions perl-package/AI-MXNet-Gluon-ModelZoo/META.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
"runtime" : {
"requires" : {
"AI::MXNet" : "1.31",
"AI::MXNet::Gluon::Contrib" : "1.3"
"AI::MXNet::Gluon::Contrib" : "1.3",
"IO::Uncompress::Unzip" : "0"
}
},
"test" : {
"requires" : {}
}
},
"release_status" : "stable",
"version" : "1.32"
"version" : "1.33"
}
3 changes: 2 additions & 1 deletion perl-package/AI-MXNet-Gluon-ModelZoo/META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ no_index:
requires:
AI::MXNet: '1.31'
AI::MXNet::Gluon::Contrib: '1.3'
version: '1.32'
IO::Uncompress::Unzip: '0'
version: '1.33'
8 changes: 5 additions & 3 deletions perl-package/AI-MXNet-Gluon-ModelZoo/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ my %WriteMakefileArgs = (
"NAME" => "AI::MXNet::Gluon::ModelZoo",
"PREREQ_PM" => {
"AI::MXNet" => "1.31",
"AI::MXNet::Gluon::Contrib" => "1.3"
"AI::MXNet::Gluon::Contrib" => "1.3",
"IO::Uncompress::Unzip" => "0"
},
"TEST_REQUIRES" => {},
"VERSION" => "1.32",
"VERSION" => "1.33",
"test" => {
"TESTS" => "t/*.t"
}
Expand All @@ -49,7 +50,8 @@ my %WriteMakefileArgs = (

my %FallbackPrereqs = (
"AI::MXNet" => "1.31",
"AI::MXNet::Gluon::Contrib" => "1.3"
"AI::MXNet::Gluon::Contrib" => "1.3",
"IO::Uncompress::Unzip" => "0"
);


Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet-Gluon-ModelZoo/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This archive contains the distribution AI-MXNet-Gluon-ModelZoo,
version 1.32:
version 1.33:

Perl interface to MXNet Gluon ModelZoo, a collection of pretrained machine learning models for computer vision.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use AI::MXNet::Gluon::ModelZoo::Vision;
use Exporter;
use base qw(Exporter);
@AI::MXNet::Gluon::ModelZoo::EXPORT_OK = qw(get_model);
our $VERSION = '1.32';
our $VERSION = '1.33';

=head1 NAME

Expand Down Expand Up @@ -130,3 +130,13 @@ sub get_model
sub vision { 'AI::MXNet::Gluon::ModelZoo::Vision' }

1;

=head1 AUTHOR

Sergey Kolychev, <sergeykolychev.github@gmail.com>

=head1 COPYRIGHT & LICENSE

This library is licensed under Apache 2.0 license L<https://www.apache.org/licenses/LICENSE-2.0>

=cut
12 changes: 12 additions & 0 deletions perl-package/AI-MXNet/Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
Revision history for Perl extension AI::MXNet

1.33 Thu Oct 4 13:25:56 PDT 2018
- Added randn function.
- Internal SELU function on C++ layer.
- Predict now accepts ndarray as well.
- Gluon: Only warn when the blocks are unregistered.
- Gluon: Better sparse support.
- Gluon: Improved block summary.
- Added validation docs for MXNet installation for Perl.
- Flexible perl env for examples.
- Gluon: Custom dtypes for the symbol block
- Separate eval metric for the epoch level.

1.32 Sun Aug 5 14:25:31 PDT 2018
- Several new metric classes
- Expanded documentation
Expand Down
4 changes: 2 additions & 2 deletions perl-package/AI-MXNet/META.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"runtime" : {
"requires" : {
"AI::MXNetCAPI" : "1.32",
"AI::MXNetCAPI" : "1.33",
"AI::NNVMCAPI" : "1.3",
"Function::Parameters" : "1.0705",
"Hash::Ordered" : "0.012",
Expand All @@ -45,5 +45,5 @@
}
},
"release_status" : "stable",
"version" : "1.32"
"version" : "1.33"
}
4 changes: 2 additions & 2 deletions perl-package/AI-MXNet/META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ no_index:
- t
- inc
requires:
AI::MXNetCAPI: '1.32'
AI::MXNetCAPI: '1.33'
AI::NNVMCAPI: '1.3'
Function::Parameters: '1.0705'
Hash::Ordered: '0.012'
GraphViz: '2.14'
Mouse: v2.1.0
PDL: '2.007'
PDL::CCS: '1.23.4'
version: '1.32'
version: '1.33'
6 changes: 3 additions & 3 deletions perl-package/AI-MXNet/Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ my %WriteMakefileArgs = (
"LICENSE" => "apache_2_0",
"NAME" => "AI::MXNet",
"PREREQ_PM" => {
"AI::MXNetCAPI" => "1.3",
"AI::MXNetCAPI" => "1.33",
"AI::NNVMCAPI" => "1.3",
"Function::Parameters" => "1.0705",
"Hash::Ordered" => "0.012",
Expand All @@ -46,15 +46,15 @@ my %WriteMakefileArgs = (
"GraphViz" => "2.14"
},
"TEST_REQUIRES" => {},
"VERSION" => "1.32",
"VERSION" => "1.33",
"test" => {
"TESTS" => "t/*.t"
}
);


my %FallbackPrereqs = (
"AI::MXNetCAPI" => "1.3",
"AI::MXNetCAPI" => "1.33",
"AI::NNVMCAPI" => "1.3",
"Function::Parameters" => "1.0705",
"Hash::Ordered" => "0.012",
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/README
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This archive contains the distribution AI-MXNet,
version 1.32:
version 1.33:

Perl interface to MXNet machine learning library

Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/calculator.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/char_lstm.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/cudnn_lstm_bucketing.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/gluon/dcgan.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/gluon/mnist.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/lstm_bucketing.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/mnist.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/examples/plot_network.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/perl
#!/usr/bin/env perl

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/lib/AI/MXNet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use AI::MXNet::Gluon;
use AI::MXNet::NDArray::Sparse;
use AI::MXNet::Symbol::Sparse;
use AI::MXNet::Engine;
our $VERSION = '1.32';
our $VERSION = '1.33';

sub import
{
Expand Down
2 changes: 1 addition & 1 deletion perl-package/AI-MXNet/lib/AI/MXNet/Gluon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sub model_zoo { require AI::MXNet::Gluon::ModelZoo; 'AI::MXNet::Gluon::ModelZoo'
but rather brings the training algorithm and model closer together to provide flexibility in the development process.

Dynamic Graphs: Gluon enables developers to define neural network models that are dynamic,
meaning they can be built on the fly, with any structure, and using any of Perls native control flow.
meaning they can be built on the fly, with any structure, and using any of Perl's native control flow.

High Performance: Gluon provides all of the above benefits without impacting the training speed that the underlying engine provides.

Expand Down
Loading