ModelZoo/Vision.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 11 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 52 CC 3 SCAR 14.6
CC
3
Cov
0%
import
12.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.3
1 # Licensed to the Apache Software Foundation (ASF) under one
2 # or more contributor license agreements. See the NOTICE file
3 # distributed with this work for additional information
4 # regarding copyright ownership. The ASF licenses this file
5 # to you under the Apache License, Version 2.0 (the
6 # "License"); you may not use this file except in compliance
7 # with the License. You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing,
12 # software distributed under the License is distributed on an
13 # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 # KIND, either express or implied. See the License for the
15 # specific language governing permissions and limitations
16 # under the License.
17  
18 package AI::MXNet::Gluon::ModelZoo::Vision;
19 use strict;
20 use warnings;
21 use AI::MXNet::Gluon::ModelZoo::ModelStore;
22 use AI::MXNet::Gluon::ModelZoo::Vision::AlexNet;
23 use AI::MXNet::Gluon::ModelZoo::Vision::DenseNet;
24 use AI::MXNet::Gluon::ModelZoo::Vision::Inception;
25 use AI::MXNet::Gluon::ModelZoo::Vision::MobileNet;
26 use AI::MXNet::Gluon::ModelZoo::Vision::ResNet;
27 use AI::MXNet::Gluon::ModelZoo::Vision::SqueezeNet;
28 use AI::MXNet::Gluon::ModelZoo::Vision::VGG;
29  
30 sub import
31 {
32 my ($class, $short_name) = @_;
33 if($short_name)
34 {
35 $short_name =~ s/[^\w:]//g;
36 if(length $short_name)
37 {
38 my $short_name_package =<<"EOP";
39 package $short_name;
40 \@${short_name}::ISA = ('AI::MXNet::Gluon::ModelZoo::Vision');
41 1;
42 EOP
43 eval $short_name_package;
44 }
45 }
46 }
47  
48 1;