| 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; | ||
| 19 | 31 | ▶ | use v5.14.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 31 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 31 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 31 | ▶ | use AI::MXNet::NS 'global'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 23 | 0 | ▶ | use AI::MXNet::Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=2.6
| |||
| 24 | use AI::MXNet::Callback 'callback'; | ||
| 25 | use AI::MXNet::NDArray qw(nd ndarray); | ||
| 26 | use AI::MXNet::Context 'context'; | ||
| 27 | use AI::MXNet::Symbol qw(sym symbol); | ||
| 28 | use AI::MXNet::Executor; | ||
| 29 | use AI::MXNet::Executor::Group; | ||
| 30 | use AI::MXNet::CudaModule; | ||
| 31 | use AI::MXNet::Random qw(rnd random); | ||
| 32 | use AI::MXNet::Initializer qw(init initializer); | ||
| 33 | use AI::MXNet::Optimizer qw(optimizer opt); | ||
| 34 | use AI::MXNet::KVStore 'kv'; | ||
| 35 | use AI::MXNet::KVStoreServer; | ||
| 36 | use AI::MXNet::IO 'io'; | ||
| 37 | use AI::MXNet::Metric 'metric'; | ||
| 38 | use AI::MXNet::LRScheduler; | ||
| 39 | use AI::MXNet::Monitor 'mon'; | ||
| 40 | use AI::MXNet::Profiler; | ||
| 41 | use AI::MXNet::Module::Base; | ||
| 42 | use AI::MXNet::Module qw(mod module); | ||
| 43 | use AI::MXNet::Module::Bucketing; | ||
| 44 | use AI::MXNet::RNN 'rnn'; | ||
| 45 | use AI::MXNet::RunTime 'runtime'; | ||
| 46 | use AI::MXNet::Visualization 'viz'; | ||
| 47 | use AI::MXNet::RecordIO 'recordio'; | ||
| 48 | use AI::MXNet::Image qw(img image); | ||
| 49 | use AI::MXNet::Contrib 'contrib'; | ||
| 50 | use AI::MXNet::LinAlg 'linalg'; | ||
| 51 | use AI::MXNet::CachedOp; | ||
| 52 | use AI::MXNet::AutoGrad 'autograd'; | ||
| 53 | use AI::MXNet::Gluon 'gluon'; | ||
| 54 | use AI::MXNet::NDArray::Sparse; | ||
| 55 | use AI::MXNet::Symbol::Sparse; | ||
| 56 | use AI::MXNet::Engine 'engine'; | ||
| 57 | our $VERSION = '1.6'; | ||
| 58 | |||
| 59 | sub cpu { AI::MXNet::Context->cpu($_[1]//0) } | ||
| 60 | sub cpu_pinned { AI::MXNet::Context->cpu_pinned($_[1]//0) } | ||
| 61 | sub gpu { AI::MXNet::Context->gpu($_[1]//0) } | ||
| 62 | sub name { __PACKAGE__ } | ||
| 63 | sub rtc { __PACKAGE__ } | ||
| 64 | sub Prefix { AI::MXNet::Symbol::Prefix->new(prefix => $_[1]) } | ||
| 65 | our $AttrScope = AI::MXNet::Symbol::AttrScope->new; | ||
| 66 | our $NameManager = AI::MXNet::Symbol::NameManager->new; | ||
| 67 | our $Context = AI::MXNet::Context->new(device_type => 'cpu', device_id => 0); | ||
| 68 | |||
| 69 | 1; | ||
| 70 | __END__ | ||