├── .mxnet_root ├── ci ├── __init__.py ├── docker │ └── install │ │ ├── r.gpg │ │ ├── sbt.gpg │ │ ├── docs_requirements │ │ ├── ubuntu_arm.sh │ │ └── ubuntu_gcc8.sh └── docker_cache_requirements ├── example ├── ssd │ ├── __init__.py │ ├── config │ │ └── __init__.py │ ├── dataset │ │ ├── __init__.py │ │ ├── pycocotools │ │ │ ├── README.md │ │ │ └── __init__.py │ │ └── names │ │ │ ├── pascal_voc.names │ │ │ └── mscoco.names │ ├── detect │ │ └── __init__.py │ ├── evaluate │ │ └── __init__.py │ ├── symbol │ │ └── __init__.py │ ├── tools │ │ ├── __init__.py │ │ └── caffe_converter │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ └── make_win32.bat │ └── train │ │ └── __init__.py ├── utils │ └── __init__.py ├── rcnn │ ├── symdata │ │ └── __init__.py │ ├── symimdb │ │ └── __init__.py │ └── symnet │ │ ├── __init__.py │ │ └── logger.py ├── image-classification │ ├── __init__.py │ ├── common │ │ └── __init__.py │ ├── symbols │ │ ├── __init__.py │ │ └── README.md │ └── predict-cpp │ │ └── Makefile ├── quantization │ └── common │ │ └── __init__.py ├── cnn_text_classification │ └── .gitignore ├── neural-style │ ├── .gitignore │ ├── end_to_end │ │ └── README.md │ └── README.md ├── recommenders │ └── .gitignore ├── ctc │ └── sample.jpg ├── capsnet │ └── result.PNG ├── captcha │ ├── captcha_example.png │ └── README.md ├── gluon │ ├── sn_gan │ │ └── sn_gan_output.png │ ├── tree_lstm │ │ └── dataset.cPickle │ └── style_transfer │ │ └── download_images.py ├── notebooks │ └── README.md ├── reinforcement-learning │ ├── dqn │ │ └── README.md │ └── ddpg │ │ └── README.md ├── restricted-boltzmann-machine │ └── samples.png ├── multivariate_time_series │ └── docs │ │ └── model_architecture.png ├── numpy-ops │ └── README.md ├── speech_recognition │ └── resources │ │ └── unicodemap_en_baidu.csv ├── deep-embedded-clustering │ └── README.md ├── adversary │ └── README.md ├── module │ └── README.md ├── sparse │ ├── wide_deep │ │ └── README.md │ └── factorization_machine │ │ └── README.md ├── rnn │ ├── README.md │ ├── old │ │ └── README.md │ └── large_word_lm │ │ └── Makefile ├── svm_mnist │ └── README.md ├── bi-lstm-sort │ └── README.md ├── named_entity_recognition │ └── README.md ├── bayesian-methods │ └── README.md ├── multi-task │ └── README.md ├── cnn_visualization │ └── README.md └── nce-loss │ └── get_text8.sh ├── perl-package ├── .gitignore ├── AI-NNVMCAPI │ ├── MANIFEST │ ├── README │ ├── META.yml │ ├── Changes │ └── t │ │ └── AI-NNVMCAPI.t ├── AI-MXNetCAPI │ ├── MANIFEST │ ├── README │ ├── META.yml │ └── t │ │ └── AI-MXNetCAPI.t ├── AI-MXNet-Gluon-Contrib │ ├── MANIFEST │ ├── README │ ├── Changes │ ├── META.yml │ └── t │ │ └── AI-MXNet-Gluon-Contrib.t ├── AI-MXNet │ ├── README │ ├── examples │ │ └── sparse │ │ │ ├── matrix_factorization │ │ │ └── README.md │ │ │ └── wide_deep │ │ │ └── README.md │ ├── META.yml │ ├── t │ │ └── AI-MXNet.t │ └── lib │ │ └── AI │ │ └── MXNet │ │ ├── Image │ │ ├── Symbol.pm │ │ └── NDArray.pm │ │ └── LinAlg │ │ ├── NDArray.pm │ │ └── Symbol.pm ├── AI-MXNet-Gluon-ModelZoo │ ├── README │ ├── Changes │ ├── MANIFEST │ ├── META.yml │ └── t │ │ └── AI-MXNet-Gluon-ModelZoo.t └── README.md ├── tests ├── cpp │ └── .gitignore ├── .gitignore ├── nightly │ ├── .gitignore │ ├── straight_dope │ │ └── README.md │ ├── broken_link_checker_test │ │ └── README.md │ └── apache_rat_license_check │ │ └── rat-excludes └── python │ ├── unittest │ └── legacy_ndarray.v0 │ ├── README.md │ └── train │ └── common.py ├── amalgamation └── .gitignore ├── tools ├── bandwidth │ └── .gitignore ├── host ├── host_worker ├── caffe_converter │ ├── .gitignore │ ├── README.md │ └── make_win32.bat ├── host1 ├── cfn │ └── Readme.md ├── coreml │ ├── pip_package │ │ ├── .gitignore │ │ └── MANIFEST.in │ └── converter │ │ └── __init__.py ├── pip_package │ ├── README.md │ └── MANIFEST.in └── caffe_translator │ ├── build_from_source.md │ ├── src │ └── main │ │ └── resources │ │ └── templates │ │ ├── add.st │ │ ├── mul.st │ │ ├── maxium.st │ │ ├── group.st │ │ ├── power.st │ │ ├── flatten.st │ │ ├── dropout.st │ │ ├── activation.st │ │ ├── permute.st │ │ ├── concat.st │ │ ├── lrn.st │ │ ├── lrpolicy_exp.st │ │ ├── opt_vars.st │ │ ├── imports.st │ │ ├── accuracy.st │ │ ├── lrpolicy_inv.st │ │ ├── lrpolicy_poly.st │ │ ├── lrpolicy_step.st │ │ ├── top_k_accuracy.st │ │ └── lrpolicy_sigmoid.st │ └── settings.gradle ├── 3rdparty ├── dmlc-core │ ├── test.py │ ├── test │ │ ├── .gitignore │ │ ├── unittest │ │ │ ├── .gitignore │ │ │ ├── build_config.h.in │ │ │ ├── unittest_main.cc │ │ │ ├── unittest_logging.cc │ │ │ ├── dmlc_unittest.mk │ │ │ ├── unittest_array_view.cc │ │ │ └── unittest_param.cc │ │ ├── logging_test.cc │ │ ├── iostream_test.cc │ │ ├── README.md │ │ ├── split_test.cc │ │ └── dataiter_test.cc │ ├── doc │ │ ├── .gitignore │ │ ├── README │ │ ├── index.md │ │ └── sphinx_util.py │ ├── scripts │ │ ├── travis │ │ │ ├── travis_before_cache.sh │ │ │ └── travis_osx_install.sh │ │ └── packages.mk │ ├── .editorconfig │ ├── windows │ │ ├── .gitignore │ │ └── README.md │ ├── example │ │ └── dmlc_example.mk │ ├── cmake │ │ ├── build_config.h.in │ │ ├── gtest_cmake.in │ │ └── lint.cmake │ ├── src │ │ ├── build_config.cc │ │ └── io │ │ │ └── filesys.cc │ ├── include │ │ └── dmlc │ │ │ └── build_config.h │ └── LICENSE └── ps-lite │ ├── docs │ ├── tutorials.md │ ├── get_started.md │ ├── index.md │ ├── env.md │ └── sphinx_util.py │ ├── tests │ ├── travis │ │ ├── travis_before_cache.sh │ │ ├── travis_setup_env.sh │ │ └── travis_script.sh │ ├── test_connection.cc │ ├── README.md │ ├── test_kv_app.dSYM │ │ └── Contents │ │ │ ├── Resources │ │ │ └── DWARF │ │ │ │ └── test_kv_app │ │ │ └── Info.plist │ ├── test_connection.dSYM │ │ └── Contents │ │ │ ├── Resources │ │ │ └── DWARF │ │ │ │ └── test_connection │ │ │ └── Info.plist │ ├── test_simple_app.dSYM │ │ └── Contents │ │ │ ├── Resources │ │ │ └── DWARF │ │ │ │ └── test_simple_app │ │ │ └── Info.plist │ ├── test_kv_app_multi_workers.dSYM │ │ └── Contents │ │ │ ├── Resources │ │ │ └── DWARF │ │ │ │ └── test_kv_app_multi_workers │ │ │ └── Info.plist │ ├── repeat.sh │ ├── test.mk │ ├── local_multi_workers.sh │ ├── local.sh │ └── test_simple_app.cc │ ├── make │ └── ps.mk │ ├── include │ └── ps │ │ ├── range.h │ │ └── base.h │ ├── cmake │ └── Modules │ │ └── FindZMQ.cmake │ └── .travis.yml ├── python ├── mxnet │ ├── gluon │ │ ├── .gitignore │ │ ├── contrib │ │ │ ├── data │ │ │ │ ├── _constants.py │ │ │ │ └── __init__.py │ │ │ └── __init__.py │ │ ├── model_zoo │ │ │ └── __init__.py │ │ ├── data │ │ │ └── vision │ │ │ │ └── __init__.py │ │ └── rnn │ │ │ └── __init__.py │ ├── _cy2 │ │ ├── README │ │ └── __init__.py │ ├── _cy3 │ │ ├── README │ │ └── __init__.py │ ├── module │ │ └── base_data_iterator.py │ ├── _ctypes │ │ └── __init__.py │ └── contrib │ │ ├── ndarray.py │ │ ├── symbol.py │ │ ├── svrg_optimization │ │ └── __init__.py │ │ ├── onnx │ │ └── onnx2mx │ │ │ └── __init__.py │ │ └── text │ │ └── __init__.py ├── .gitignore ├── minpy │ └── README.md └── README.md ├── docs ├── .dockerignore ├── .gitignore ├── _static │ ├── mxnet-theme │ │ └── theme.conf │ ├── selectlang.js │ └── js │ │ ├── search.js │ │ └── auto_module_index.js ├── tutorials │ ├── c++ │ │ └── index.md │ ├── nlp │ │ └── index.md │ ├── onnx │ │ └── index.md │ ├── tensorrt │ │ ├── index.md │ │ ├── wavenet_optimized.png │ │ └── wavenet_unoptimized.png │ ├── basic │ │ └── index.md │ ├── embedded │ │ └── index.md │ ├── gluon │ │ └── index.md │ ├── python │ │ └── index.md │ ├── sparse │ │ └── index.md │ ├── vision │ │ └── index.md │ ├── control_flow │ │ └── index.md │ ├── speech_recognition │ │ └── index.md │ ├── unsupervised_learning │ │ └── index.md │ ├── r │ │ └── index.md │ └── scala │ │ └── index.md ├── error │ ├── api.md │ └── 404.md ├── community │ ├── index.md │ └── mxnet_channels.md ├── api │ ├── index.md │ ├── c++ │ │ └── index.md │ ├── python │ │ ├── contrib │ │ │ └── contrib.md │ │ ├── callback │ │ │ └── callback.md │ │ ├── tools │ │ │ ├── visualization.md │ │ │ └── test_utils.md │ │ ├── metric │ │ │ └── metric.md │ │ ├── rtc │ │ │ └── rtc.md │ │ ├── gluon │ │ │ └── loss.md │ │ └── executor │ │ │ └── executor.md │ └── julia │ │ └── index.md ├── index.md ├── faq │ └── develop_and_hack.md ├── install │ ├── tx2_setup.md │ ├── raspbian_setup.md │ └── amazonlinux_setup.md └── architecture │ └── index.md ├── docker ├── .gitignore └── Dockerfiles │ ├── Dockerfile.in.python │ ├── Dockerfile.in.scala │ ├── Dockerfile.in.julia │ ├── Dockerfile.in.lib.cpu │ ├── Dockerfile.in.r-lang │ ├── Dockerfile.in.lib.gpu │ ├── Dockerfile.in.perl │ └── License.md ├── julia ├── models │ └── Inception │ │ ├── .gitignore │ │ └── get.sh ├── REQUIRE ├── docs │ ├── src │ │ ├── api │ │ │ ├── context.md │ │ │ ├── executor.md │ │ │ ├── kvstore.md │ │ │ ├── initializer.md │ │ │ ├── callback.md │ │ │ ├── symbolic-node.md │ │ │ ├── visualize.md │ │ │ ├── nn-factory.md │ │ │ ├── model.md │ │ │ └── metric.md │ │ ├── tutorial │ │ │ └── images │ │ │ │ └── LSTM3-chain.png │ │ ├── user-guide │ │ │ └── faq.md │ │ └── api.md │ └── Makefile ├── examples │ ├── char-lstm │ │ └── .gitignore │ └── imagenet │ │ └── ijulia-pretrained-predict │ │ └── cat.png ├── .gitignore ├── plugins │ └── README.md ├── README-DEV.md └── test │ └── travis │ └── run_coverage.sh ├── cpp-package ├── include │ └── mxnet-cpp │ │ ├── .gitignore │ │ └── CPPLINT.cfg ├── example │ └── feature_extract │ │ └── README.md ├── LICENSE ├── CMakeLists.txt ├── README.md ├── .travis.yml └── tests │ └── travis │ └── setup.sh ├── readthedocs.yml ├── plot.gv.pdf ├── contrib └── clojure-package │ ├── src │ └── org │ │ └── apache │ │ └── clojure_mxnet │ │ ├── gen │ │ └── .gitignore │ │ └── base.clj │ ├── examples │ ├── visualization │ │ ├── README.md │ │ └── .gitignore │ ├── gan │ │ ├── .gitignore │ │ └── README.md │ ├── rnn │ │ ├── .gitignore │ │ ├── README.md │ │ └── get_data.sh │ ├── profiler │ │ ├── .gitignore │ │ └── README.md │ ├── tutorial │ │ ├── .gitignore │ │ └── README.md │ ├── multi-label │ │ ├── .gitignore │ │ └── README.md │ ├── imclassification │ │ ├── .gitignore │ │ └── README.md │ ├── pre-trained-models │ │ └── .gitignore │ ├── cnn-text-classification │ │ └── .gitignore │ ├── neural-style │ │ ├── .gitignore │ │ └── README.md │ └── module │ │ └── README.md │ ├── testing.md │ └── ci-test.sh ├── NOTICE ├── snap.python ├── CODE_OF_CONDUCT.md ├── DISCLAIMER ├── .codecov.yml ├── scala-package ├── examples │ └── src │ │ └── main │ │ └── scala │ │ └── org │ │ └── apache │ │ └── mxnetexamples │ │ ├── gan │ │ └── README.md │ │ └── customop │ │ └── README.md ├── assembly │ ├── src │ │ └── javadoc.xml │ ├── linux-x86_64-cpu │ │ └── src │ │ │ └── main │ │ │ └── assembly │ │ │ └── assembly.xml │ ├── linux-x86_64-gpu │ │ └── src │ │ │ └── main │ │ │ └── assembly │ │ │ └── assembly.xml │ └── osx-x86_64-cpu │ │ └── src │ │ └── main │ │ └── assembly │ │ └── assembly.xml ├── mxnet-demo │ └── bin │ │ └── demo.sh └── infer │ └── src │ └── main │ └── scala │ └── org │ └── apache │ └── mxnet │ └── infer │ └── package.scala ├── .gitmodules ├── src └── c_api │ └── .clang-tidy └── plugin └── opencv └── __init__.py /.mxnet_root: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ci/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/rcnn/symdata/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/rcnn/symimdb/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/rcnn/symnet/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/config/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/dataset/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/detect/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/evaluate/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/symbol/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/tools/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/ssd/train/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /perl-package/.gitignore: -------------------------------------------------------------------------------- 1 | !* 2 | -------------------------------------------------------------------------------- /tests/cpp/.gitignore: -------------------------------------------------------------------------------- 1 | unittest 2 | -------------------------------------------------------------------------------- /amalgamation/.gitignore: -------------------------------------------------------------------------------- 1 | *-all.cc 2 | -------------------------------------------------------------------------------- /tools/bandwidth/.gitignore: -------------------------------------------------------------------------------- 1 | ResNet 2 | -------------------------------------------------------------------------------- /tools/host: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 127.0.0.1 3 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test.py: -------------------------------------------------------------------------------- 1 | fiadfdsfas 2 | -------------------------------------------------------------------------------- /example/image-classification/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/quantization/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/mxnet/gluon/.gitignore: -------------------------------------------------------------------------------- 1 | !data 2 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | *_unittest 2 | *.gz 3 | -------------------------------------------------------------------------------- /example/image-classification/common/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /example/image-classification/symbols/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/nightly/.gitignore: -------------------------------------------------------------------------------- 1 | data/ 2 | results/ 3 | -------------------------------------------------------------------------------- /tools/host_worker: -------------------------------------------------------------------------------- 1 | 127.0.0.1 2 | 127.0.0.1 3 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/.gitignore: -------------------------------------------------------------------------------- 1 | *_test 2 | *.csv -------------------------------------------------------------------------------- /3rdparty/ps-lite/docs/tutorials.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | -------------------------------------------------------------------------------- /docs/.dockerignore: -------------------------------------------------------------------------------- 1 | Dockerfile 2 | _build 3 | 4 | -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | _build/* 2 | *.pyc 3 | doxygen 4 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/docs/get_started.md: -------------------------------------------------------------------------------- 1 | # Get Started 2 | -------------------------------------------------------------------------------- /docker/.gitignore: -------------------------------------------------------------------------------- 1 | Dockerfile.* 2 | !Dockerfile.in.* 3 | -------------------------------------------------------------------------------- /python/.gitignore: -------------------------------------------------------------------------------- 1 | dist 2 | *.egg-info 3 | build 4 | *.cpp -------------------------------------------------------------------------------- /3rdparty/dmlc-core/doc/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | _build 3 | doxygen 4 | -------------------------------------------------------------------------------- /example/cnn_text_classification/.gitignore: -------------------------------------------------------------------------------- 1 | data 2 | checkpoint -------------------------------------------------------------------------------- /example/neural-style/.gitignore: -------------------------------------------------------------------------------- 1 | input 2 | output 3 | model 4 | -------------------------------------------------------------------------------- /example/recommenders/.gitignore: -------------------------------------------------------------------------------- 1 | ml-100k.zip 2 | ml-100k 3 | -------------------------------------------------------------------------------- /docs/_static/mxnet-theme/theme.conf: -------------------------------------------------------------------------------- 1 | [theme] 2 | inherit = basic 3 | -------------------------------------------------------------------------------- /julia/models/Inception/.gitignore: -------------------------------------------------------------------------------- 1 | Inception 2 | Inception.zip 3 | -------------------------------------------------------------------------------- /tools/caffe_converter/.gitignore: -------------------------------------------------------------------------------- 1 | model/ 2 | Cat-hd-wallpapers.jpg 3 | -------------------------------------------------------------------------------- /cpp-package/include/mxnet-cpp/.gitignore: -------------------------------------------------------------------------------- 1 | # Rebuildable file(s) 2 | op.h 3 | -------------------------------------------------------------------------------- /tools/host1: -------------------------------------------------------------------------------- 1 | 88e9fe53272d.ant.amazon.com 2 | 88e9fe53272d.ant.amazon.com 3 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/.gitignore: -------------------------------------------------------------------------------- 1 | dmlc_unittest 2 | build_config.h 3 | -------------------------------------------------------------------------------- /readthedocs.yml: -------------------------------------------------------------------------------- 1 | formats: 2 | - none 3 | requirements_file: docs/requirements.txt 4 | -------------------------------------------------------------------------------- /python/mxnet/_cy2/README: -------------------------------------------------------------------------------- 1 | This folder is by default empty and will hold DLLs generated by cython. 2 | -------------------------------------------------------------------------------- /python/mxnet/_cy3/README: -------------------------------------------------------------------------------- 1 | This folder is by default empty and will hold DLLs generated by cython. 2 | -------------------------------------------------------------------------------- /plot.gv.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/plot.gv.pdf -------------------------------------------------------------------------------- /example/ssd/tools/caffe_converter/.gitignore: -------------------------------------------------------------------------------- 1 | model/ 2 | *.caffemodel 3 | *.prototxt 4 | *.json 5 | *.params 6 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/travis/travis_before_cache.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # do nothing for now 3 | ls -alLR ${CACHE_PREFIX} -------------------------------------------------------------------------------- /docs/tutorials/c++/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/nlp/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/onnx/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/tensorrt/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` -------------------------------------------------------------------------------- /3rdparty/dmlc-core/scripts/travis/travis_before_cache.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # do nothing for now 3 | ls -alLR ${CACHE_PREFIX} -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/build_config.h.in: -------------------------------------------------------------------------------- 1 | #cmakedefine CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" 2 | -------------------------------------------------------------------------------- /docs/tutorials/basic/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/embedded/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/gluon/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/python/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/sparse/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /docs/tutorials/vision/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /julia/REQUIRE: -------------------------------------------------------------------------------- 1 | julia 0.6 2 | Formatting 3 | BinDeps 4 | JSON 5 | MacroTools 6 | TakingBroadcastSeriously 7 | Reexport 8 | -------------------------------------------------------------------------------- /docs/tutorials/control_flow/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /julia/docs/src/api/context.md: -------------------------------------------------------------------------------- 1 | # Context 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["context.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /julia/docs/src/api/executor.md: -------------------------------------------------------------------------------- 1 | # Executor 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["executor.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /python/minpy/README.md: -------------------------------------------------------------------------------- 1 | MXNet Python Package 2 | ==================== 3 | 4 | This is the WIP directory for MinPy project. 5 | -------------------------------------------------------------------------------- /ci/docker/install/r.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/ci/docker/install/r.gpg -------------------------------------------------------------------------------- /docs/tutorials/speech_recognition/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /example/ctc/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/ctc/sample.jpg -------------------------------------------------------------------------------- /julia/docs/src/api/kvstore.md: -------------------------------------------------------------------------------- 1 | # Key-Value Store 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["kvstore.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /julia/examples/char-lstm/.gitignore: -------------------------------------------------------------------------------- 1 | input.txt 2 | vocab.dat 3 | checkpoints 4 | visualize.dot 5 | visualize.svg 6 | visualize.png 7 | -------------------------------------------------------------------------------- /ci/docker/install/sbt.gpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/ci/docker/install/sbt.gpg -------------------------------------------------------------------------------- /docs/tutorials/unsupervised_learning/index.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :glob: 6 | 7 | * 8 | ``` 9 | -------------------------------------------------------------------------------- /example/capsnet/result.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/capsnet/result.PNG -------------------------------------------------------------------------------- /julia/docs/src/api/initializer.md: -------------------------------------------------------------------------------- 1 | # Initializer 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["initializer.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /julia/docs/src/api/callback.md: -------------------------------------------------------------------------------- 1 | # Callback in training 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["callback.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /julia/docs/src/api/symbolic-node.md: -------------------------------------------------------------------------------- 1 | # Symbolic API 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["symbolic-node.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /julia/docs/src/api/visualize.md: -------------------------------------------------------------------------------- 1 | # Network Visualization 2 | 3 | ```@autodocs 4 | Modules = [MXNet.mx] 5 | Pages = ["visualize.jl"] 6 | ``` 7 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset=utf-8 5 | indent_style = space 6 | indent_size = 2 7 | insert_final_newline = true -------------------------------------------------------------------------------- /example/captcha/captcha_example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/captcha/captcha_example.png -------------------------------------------------------------------------------- /python/mxnet/module/base_data_iterator.py: -------------------------------------------------------------------------------- 1 | 2 | class BaseDataIterator(object): 3 | def get_data_iterator(self, kv): 4 | raise NotImplementedError() -------------------------------------------------------------------------------- /3rdparty/dmlc-core/windows/.gitignore: -------------------------------------------------------------------------------- 1 | Debug 2 | *suo 3 | *.dll 4 | *i386 5 | *x64 6 | ipch 7 | *.filters 8 | *.user 9 | *sdf 10 | Release 11 | Debug 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/src/org/apache/clojure_mxnet/gen/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | 6 | -------------------------------------------------------------------------------- /example/gluon/sn_gan/sn_gan_output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/gluon/sn_gan/sn_gan_output.png -------------------------------------------------------------------------------- /example/gluon/tree_lstm/dataset.cPickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/gluon/tree_lstm/dataset.cPickle -------------------------------------------------------------------------------- /tests/python/unittest/legacy_ndarray.v0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/tests/python/unittest/legacy_ndarray.v0 -------------------------------------------------------------------------------- /example/notebooks/README.md: -------------------------------------------------------------------------------- 1 | Moved to 2 | https://github.com/dmlc/mxnet-notebooks/tree/master/python/moved-from-mxnet/ 3 | 4 | This folder will be removed soon. 5 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/visualization/README.md: -------------------------------------------------------------------------------- 1 | # visualization 2 | 3 | Run `lein run` to have a sample network visualization printed for you 4 | "testviz.pdf" 5 | -------------------------------------------------------------------------------- /example/reinforcement-learning/dqn/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/reinforcement-learning/dqn/README.md -------------------------------------------------------------------------------- /docs/tutorials/tensorrt/wavenet_optimized.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/docs/tutorials/tensorrt/wavenet_optimized.png -------------------------------------------------------------------------------- /julia/docs/src/tutorial/images/LSTM3-chain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/julia/docs/src/tutorial/images/LSTM3-chain.png -------------------------------------------------------------------------------- /docs/tutorials/tensorrt/wavenet_unoptimized.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/docs/tutorials/tensorrt/wavenet_unoptimized.png -------------------------------------------------------------------------------- /example/restricted-boltzmann-machine/samples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/restricted-boltzmann-machine/samples.png -------------------------------------------------------------------------------- /tools/cfn/Readme.md: -------------------------------------------------------------------------------- 1 | **Distributed Deep Learning Made Easy has found more love and new home, please visit 2 | [awslabs/deeplearning-cfn](https://github.com/awslabs/deeplearning-cfn)** -------------------------------------------------------------------------------- /example/ssd/dataset/pycocotools/README.md: -------------------------------------------------------------------------------- 1 | This is a modified version of https://github.com/pdollar/coco python API. 2 | No `make` is required, but this will not support mask functions. 3 | -------------------------------------------------------------------------------- /perl-package/AI-NNVMCAPI/MANIFEST: -------------------------------------------------------------------------------- 1 | Changes 2 | Makefile.PL 3 | MANIFEST 4 | META.json 5 | META.yml 6 | README 7 | t/AI-NNVMCAPI.t 8 | lib/AI/NNVMCAPI.pm 9 | nnvm.i 10 | nnvm_typemaps.i 11 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_connection.cc: -------------------------------------------------------------------------------- 1 | #include "ps/ps.h" 2 | 3 | int main(int argc, char *argv[]) { 4 | ps::Start(0); 5 | // do nothing 6 | ps::Finalize(0, true); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/gan/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/rnn/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /julia/examples/imagenet/ijulia-pretrained-predict/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/julia/examples/imagenet/ijulia-pretrained-predict/cat.png -------------------------------------------------------------------------------- /perl-package/AI-MXNetCAPI/MANIFEST: -------------------------------------------------------------------------------- 1 | Changes 2 | Makefile.PL 3 | MANIFEST 4 | README 5 | META.json 6 | META.yml 7 | t/AI-MXNetCAPI.t 8 | lib/AI/MXNetCAPI.pm 9 | mxnet.i 10 | mxnet_typemaps.i 11 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/profiler/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/tutorial/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /docs/error/api.md: -------------------------------------------------------------------------------- 1 | # API Not Available 2 | 3 | You selected an API that is not available for this version of MXNet. Try a more recent version of MXNet, or go to the [master](../versions/master/) version. 4 | -------------------------------------------------------------------------------- /example/multivariate_time_series/docs/model_architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/example/multivariate_time_series/docs/model_architecture.png -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/README.md: -------------------------------------------------------------------------------- 1 | How to use 2 | 3 | build by `make test` in the root directory, then run 4 | 5 | ```bash 6 | find test_* -type f -executable -exec ./repeat.sh 4 ./local.sh 2 2 ./{} \; 7 | ``` 8 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/multi-label/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/visualization/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/imclassification/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/pre-trained-models/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /docs/community/index.md: -------------------------------------------------------------------------------- 1 | # MXNet Community 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | contribute.md 8 | ecosystem.md 9 | powered_by.md 10 | mxnet_channels.md 11 | ``` 12 | -------------------------------------------------------------------------------- /julia/.gitignore: -------------------------------------------------------------------------------- 1 | *.jl.cov 2 | *.jl.*.cov 3 | *.jl.mem 4 | *.pyc 5 | .ipynb_checkpoints 6 | data 7 | deps/src 8 | deps/usr 9 | deps/deps.jl 10 | docs/_build 11 | docs/build/ 12 | docs/site/ 13 | .vscode 14 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/doc/README: -------------------------------------------------------------------------------- 1 | This document is generated by sphinx. 2 | Make sure you cloned the following repos in the root. 3 | 4 | - https://github.com/tqchen/recommonmark 5 | 6 | Type make html in doc folder. 7 | 8 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache MXNET (incubating) 2 | Copyright 2017-2018 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/cnn-text-classification/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/windows/README.md: -------------------------------------------------------------------------------- 1 | MSVC Project 2 | ==== 3 | The solution has been created with Visual Studio Express 2010. 4 | Preliminary project for testing windows compatibility. 5 | It do not come with a warranty. 6 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/profiler/README.md: -------------------------------------------------------------------------------- 1 | # profiler 2 | 3 | An example of using the profiler. 4 | 5 | To run use `lein run` 6 | A file will be generated in the directory afterwards `profile-matmul-20iter.json` 7 | -------------------------------------------------------------------------------- /julia/docs/src/user-guide/faq.md: -------------------------------------------------------------------------------- 1 | FAQ 2 | === 3 | 4 | Running MXNet on AWS GPU instances 5 | ---------------------------------- 6 | 7 | See the discussions and notes 8 | [here](https://github.com/dmlc/MXNet.jl/issues/43). 9 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.python: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # part of the dockerfile to install the python binding 3 | 4 | COPY install/python.sh install/ 5 | RUN install/python.sh 6 | ENV PYTHONPATH=/mxnet/python 7 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_kv_app.dSYM/Contents/Resources/DWARF/test_kv_app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/3rdparty/ps-lite/tests/test_kv_app.dSYM/Contents/Resources/DWARF/test_kv_app -------------------------------------------------------------------------------- /contrib/clojure-package/examples/neural-style/.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /classes 3 | /checkouts 4 | pom.xml 5 | pom.xml.asc 6 | *.jar 7 | *.class 8 | /.lein-* 9 | /.nrepl-port 10 | .hgignore 11 | .hg/ 12 | output/* 13 | input/* 14 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.scala: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # part of the dockerfile to install the scala binding 3 | 4 | COPY install/scala.sh install/ 5 | RUN install/scala.sh 6 | 7 | RUN cd mxnet && make scalapkg $BUILD_OPTS 8 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/tutorial/README.md: -------------------------------------------------------------------------------- 1 | # tutorial 2 | 3 | Tutorials are based on the Scala api examples here https://mxnet.incubator.apache.org/api/scala/ndarray.html 4 | 5 | Start with ndarray then move onto symbol and module 6 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-Contrib/MANIFEST: -------------------------------------------------------------------------------- 1 | Changes 2 | lib/AI/MXNet/Gluon/Contrib.pm 3 | lib/AI/MXNet/Gluon/Contrib/NN/BasicLayers.pm 4 | Makefile.PL 5 | MANIFEST 6 | META.json 7 | META.yml 8 | README 9 | t/AI-MXNet-Gluon-Contrib.t 10 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_connection.dSYM/Contents/Resources/DWARF/test_connection: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/3rdparty/ps-lite/tests/test_connection.dSYM/Contents/Resources/DWARF/test_connection -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_simple_app.dSYM/Contents/Resources/DWARF/test_simple_app: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/3rdparty/ps-lite/tests/test_simple_app.dSYM/Contents/Resources/DWARF/test_simple_app -------------------------------------------------------------------------------- /tools/coreml/pip_package/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled python modules. 2 | *.pyc 3 | 4 | # Setuptools distribution folder. 5 | /dist/ 6 | 7 | # Python egg metadata, regenerated from source files by setuptools. 8 | /*.egg-info 9 | /*.egg 10 | 11 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.julia: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # part of the dockerfile to install the julia binding 3 | 4 | COPY install/julia.sh install/ 5 | RUN install/julia.sh 6 | ENV MXNET_HOME /mxnet 7 | RUN julia -e 'Pkg.add("MXNet")' 8 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/example/dmlc_example.mk: -------------------------------------------------------------------------------- 1 | ALL_EXAMPLE=example/parameter 2 | 3 | 4 | example/parameter: example/parameter.cc libdmlc.a 5 | 6 | $(ALL_EXAMPLE) : 7 | $(CXX) $(CFLAGS) -o $@ $(filter %.cpp %.o %.c %.cc %.a, $^) $(LDFLAGS) 8 | 9 | 10 | -------------------------------------------------------------------------------- /julia/docs/src/api/nn-factory.md: -------------------------------------------------------------------------------- 1 | # Neural Network Factory 2 | 3 | Neural network factory provide convenient helper functions to define 4 | common neural networks. 5 | 6 | ```@autodocs 7 | Modules = [MXNet.mx] 8 | Pages = ["nn-factory.jl"] 9 | ``` 10 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/README: -------------------------------------------------------------------------------- 1 | This archive contains the distribution AI-MXNet, 2 | version 1.33: 3 | 4 | Perl interface to MXNet machine learning library 5 | 6 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 7 | 8 | -------------------------------------------------------------------------------- /docs/api/index.md: -------------------------------------------------------------------------------- 1 | # MXNet APIs 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | c++/index.md 8 | clojure/index.md 9 | julia/index.md 10 | perl/index.md 11 | python/index.md 12 | r/index.md 13 | scala/index.md 14 | ``` 15 | -------------------------------------------------------------------------------- /example/ssd/dataset/names/pascal_voc.names: -------------------------------------------------------------------------------- 1 | aeroplane 2 | bicycle 3 | bird 4 | boat 5 | bottle 6 | bus 7 | car 8 | cat 9 | chair 10 | cow 11 | diningtable 12 | dog 13 | horse 14 | motorbike 15 | person 16 | pottedplant 17 | sheep 18 | sofa 19 | train 20 | tvmonitor 21 | -------------------------------------------------------------------------------- /julia/docs/src/api/model.md: -------------------------------------------------------------------------------- 1 | # Model 2 | 3 | The model API provides convenient high-level interface to do training and predicting on 4 | a network described using the symbolic API. 5 | 6 | ```@autodocs 7 | Modules = [MXNet.mx] 8 | Pages = ["model.jl"] 9 | ``` 10 | -------------------------------------------------------------------------------- /snap.python: -------------------------------------------------------------------------------- 1 | export MXNET_HOME=$SNAP 2 | export LD_LIBRARY_PATH=${SNAP}/lib:${SNAP}/usr/lib:$LD_LIBRARY_PATH 3 | export PYTHONPATH=$MXNET_HOME:${SNAP}/lib/python2.7/site-packages/:${SNAP}/usr/lib/python2.7/dist-packages/:$PYTHONPATH 4 | 5 | exec ${SNAP}/usr/bin/python $@ 6 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_kv_app_multi_workers.dSYM/Contents/Resources/DWARF/test_kv_app_multi_workers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/awslabs/dynamic-training-with-apache-mxnet-on-aws/HEAD/3rdparty/ps-lite/tests/test_kv_app_multi_workers.dSYM/Contents/Resources/DWARF/test_kv_app_multi_workers -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/unittest_main.cc: -------------------------------------------------------------------------------- 1 | // Copyright by Contributors 2 | #include 3 | 4 | int main(int argc, char ** argv) { 5 | testing::InitGoogleTest(&argc, argv); 6 | testing::FLAGS_gtest_death_test_style = "threadsafe"; 7 | return RUN_ALL_TESTS(); 8 | } 9 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | # MXNet 2 | 3 | ```eval_rst 4 | .. toctree:: 5 | :maxdepth: 1 6 | 7 | api/index.md 8 | architecture/index.md 9 | community/index.md 10 | faq/index.md 11 | gluon/index.md 12 | install/index.md 13 | model_zoo/index.md 14 | tutorials/index.md 15 | ``` 16 | -------------------------------------------------------------------------------- /example/numpy-ops/README.md: -------------------------------------------------------------------------------- 1 | # Training with Custom Operators in Python 2 | 3 | These examples demonstrate custom operator implementations in python. 4 | You can implement the computation entirely in python or write custom CUDA kernels in C/C++ inside your python source code with a help of Run-Time Compilation (RTC). 5 | -------------------------------------------------------------------------------- /example/speech_recognition/resources/unicodemap_en_baidu.csv: -------------------------------------------------------------------------------- 1 | ',1 2 | ,2 3 | a,3 4 | b,4 5 | c,5 6 | d,6 7 | e,7 8 | f,8 9 | g,9 10 | h,10 11 | i,11 12 | j,12 13 | k,13 14 | l,14 15 | m,15 16 | n,16 17 | o,17 18 | p,18 19 | q,19 20 | r,20 21 | s,21 22 | t,22 23 | u,23 24 | v,24 25 | w,25 26 | x,26 27 | y,27 28 | z,28 -------------------------------------------------------------------------------- /julia/docs/src/api/metric.md: -------------------------------------------------------------------------------- 1 | # Evaluation Metrics 2 | 3 | Evaluation metrics provide a way to evaluate the performance of a learned model. 4 | This is typically used during training to monitor performance on the validation 5 | set. 6 | 7 | ```@autodocs 8 | Modules = [MXNet.mx] 9 | Pages = ["metric.jl"] 10 | ``` 11 | -------------------------------------------------------------------------------- /tests/nightly/straight_dope/README.md: -------------------------------------------------------------------------------- 1 | # Nightly Tests for MXNet: The Straight Dope 2 | 3 | These are some longer running tests that are scheduled to run every night. 4 | 5 | ### Description 6 | These tests verify that the straight dope tutorials run without error. They are 7 | run on both single and multi-gpu configurations. 8 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-Contrib/README: -------------------------------------------------------------------------------- 1 | This archive contains the distribution AI-MXNet-Gluon-Contrib, 2 | version 1.33: 3 | 4 | Perl interface to MXNet Gluon Contib modules, a collection of supplemental Gluon blocks. 5 | 6 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 7 | 8 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.lib.cpu: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # dockerfile to build libmxnet.so on CPU 3 | FROM ubuntu:14.04 4 | 5 | COPY install/cpp.sh install/ 6 | RUN install/cpp.sh 7 | 8 | RUN git clone --recursive https://github.com/dmlc/mxnet && cd mxnet && \ 9 | make -j$(nproc) && \ 10 | rm -r build 11 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.r-lang: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # part of the dockerfile to install the r binding 3 | 4 | COPY install/r.sh install/ 5 | ADD https://raw.githubusercontent.com/dmlc/mxnet/master/R-package/DESCRIPTION install/ 6 | RUN install/r.sh 7 | RUN cd mxnet && make rpkg && R CMD INSTALL mxnet_current_r.tar.gz 8 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/cmake/build_config.h.in: -------------------------------------------------------------------------------- 1 | #ifndef DMLC_BUILD_CONFIG_H_ 2 | #define DMLC_BUILD_CONFIG_H_ 3 | 4 | #cmakedefine FOPEN_64_PRESENT 5 | 6 | #if !defined(FOPEN_64_PRESENT) && DMLC_USE_FOPEN64 7 | #define DMLC_EMIT_FOPEN64_REDEFINE_WARNING 8 | #define fopen64 std::fopen 9 | #endif 10 | 11 | #endif // DMLC_BUILD_CONFIG_H_ 12 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/repeat.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -x 4 | 5 | if [ $# -lt 2 ]; then 6 | echo "usage: $0 num_repeats bin [args...]" 7 | exit -1; 8 | fi 9 | np=$1 10 | shift 11 | 12 | for ((i=0; i<${np}; ++i)); do 13 | echo "repeat $i: $@" 14 | $@ 15 | if [ $? != 0 ]; then 16 | break 17 | fi 18 | done 19 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-ModelZoo/README: -------------------------------------------------------------------------------- 1 | This archive contains the distribution AI-MXNet-Gluon-ModelZoo, 2 | version 1.33: 3 | 4 | Perl interface to MXNet Gluon ModelZoo, a collection of pretrained machine learning models for computer vision. 5 | 6 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 7 | 8 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-ModelZoo/Changes: -------------------------------------------------------------------------------- 1 | Revision history for Perl extension AI::MXNet::Gluon::ModelZoo 2 | 3 | 1.33 Thu Oct 4 13:25:56 PDT 2018 4 | - Fixed kwalitee issues. 5 | 6 | 1.32 Sun Aug 5 14:25:31 PDT 2018 7 | - Updated vgg16/19 models 8 | 9 | 1.3 Tue Jul 10 21:19:13 PDT 2018 10 | - Initial release 11 | 12 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/logging_test.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main(void) { 4 | LOG(INFO) << "hello"; 5 | LOG(ERROR) << "error"; 6 | try { 7 | LOG(FATAL)<<'a'<<11<<33; 8 | } catch (dmlc::Error e) { 9 | LOG(INFO) << "catch " << e.what(); 10 | } 11 | CHECK(2!=3) << "test"; 12 | CHECK(2==3) << "test"; 13 | return 0; 14 | } 15 | -------------------------------------------------------------------------------- /ci/docker/install/docs_requirements: -------------------------------------------------------------------------------- 1 | beautifulsoup4==4.6.3 2 | breathe==4.10.0 3 | cpplint==1.3.0 4 | CommonMark==0.5.4 5 | h5py==2.8.0rc1 6 | mock==2.0.0 7 | nose==1.3.7 8 | nose-timer==0.7.3 9 | numpy<=1.15.2,>=1.8.2 10 | pylint==1.8.3 11 | pypandoc==1.4 12 | recommonmark==0.4.0 13 | requests<2.19.0,>=2.18.4 14 | scipy==1.0.1 15 | six==1.11.0 16 | sphinx==1.5.6 17 | -------------------------------------------------------------------------------- /docs/faq/develop_and_hack.md: -------------------------------------------------------------------------------- 1 | # Develop and Hack MXNet 2 | - [Create new operators](new_op.md) 3 | - [Use Torch from MXNet](torch.md) 4 | - [Set environment variables of MXNet](env_var.md) 5 | 6 | # Other Resources 7 | - [MXNet System Architecture Overview](http://mxnet.io/architecture/overview.html) 8 | - [Contributor Guidelines](http://mxnet.io/community/contribute.html) -------------------------------------------------------------------------------- /3rdparty/ps-lite/docs/index.md: -------------------------------------------------------------------------------- 1 | # PS-Lite Documents 2 | 3 | PS-Lite is a lightweight implementation of the parameter server. It provides 4 | asynchronous and zero-copy key-value pair communications between machines. 5 | 6 | 7 | ```eval_rst 8 | .. toctree:: 9 | :numbered: 10 | 11 | overview 12 | get_started 13 | tutorials 14 | how_to 15 | api 16 | ``` 17 | -------------------------------------------------------------------------------- /example/deep-embedded-clustering/README.md: -------------------------------------------------------------------------------- 1 | # DEC Implementation 2 | This is based on the paper `Unsupervised deep embedding for clustering analysis` by Junyuan Xie, Ross Girshick, and Ali Farhadi 3 | 4 | ## Prerequisite 5 | - Install Scikit-learn: `python -m pip install --user sklearn` 6 | - Install SciPy: `python -m pip install --user scipy` 7 | 8 | ## Usage 9 | run `python dec.py` -------------------------------------------------------------------------------- /docs/api/c++/index.md: -------------------------------------------------------------------------------- 1 | # MXNet - C++ API 2 | 3 | For namespaces, classes, and code files for the MXNet C++ package, see the following: 4 | 5 | * [Namespaces](http://mxnet.io/doxygen/namespaces.html) 6 | * [Classes](http://mxnet.io/doxygen/annotated.html) 7 | * [Code Files](http://mxnet.io/doxygen/files.html) 8 | * [MXNet CPP Package](https://github.com/dmlc/mxnet/tree/master/cpp-package) 9 | -------------------------------------------------------------------------------- /docs/install/tx2_setup.md: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 |

6 | 7 | This content is moved to a new MXNet install page. Redirecting... 8 |

9 | -------------------------------------------------------------------------------- /docs/tutorials/r/index.md: -------------------------------------------------------------------------------- 1 | # R Tutorials 2 | 3 | These tutorials introduce a few fundamental concepts in deep learning and how to implement them in R using _MXNet_. 4 | 5 | ```eval_rst 6 | .. toctree:: 7 | :glob: 8 | 9 | * 10 | ``` 11 | 12 |
13 | 14 | More tutorials and examples are available in the GitHub [repository](https://github.com/apache/incubator-mxnet/tree/master/example). 15 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.lib.gpu: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # dockerfile to build libmxnet.so on GPU 3 | FROM nvidia/cuda:8.0-cudnn5-devel 4 | 5 | COPY install/cpp.sh install/ 6 | RUN install/cpp.sh 7 | 8 | ENV BUILD_OPTS "USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1" 9 | RUN git clone --recursive https://github.com/dmlc/mxnet && cd mxnet && \ 10 | make -j$(nproc) $BUILD_OPTS 11 | -------------------------------------------------------------------------------- /docs/install/raspbian_setup.md: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 |

6 | 7 | This content is moved to a new MXNet install page. Redirecting... 8 |

9 | -------------------------------------------------------------------------------- /julia/docs/src/api.md: -------------------------------------------------------------------------------- 1 | # API Documentation 2 | 3 | ```@contents 4 | Pages = [ 5 | "api/symbolic-node.md", 6 | "api/ndarray.md", 7 | "api/context.md", 8 | "api/model.md", 9 | "api/initializers.md", 10 | "api/optimizers.md", 11 | "api/callbacks.md", 12 | "api/metric.md", 13 | "api/io.md", 14 | "api/nn-factory.md", 15 | "api/executor.md", 16 | "api/visualize.md", 17 | ] 18 | ``` 19 | -------------------------------------------------------------------------------- /docs/install/amazonlinux_setup.md: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 |

6 | 7 | This content is moved to a new MXNet install page. Redirecting... 8 |

9 | -------------------------------------------------------------------------------- /tools/pip_package/README.md: -------------------------------------------------------------------------------- 1 | MXNet Python Package 2 | ==================== 3 | MXNet is a deep learning framework designed for both *efficiency* and *flexibility*. 4 | It allows you to mix the flavours of deep learning programs together to maximize the efficiency and your productivity. 5 | 6 | 7 | Installation 8 | ------------ 9 | To install, check [Build Instruction](http://mxnet.io/get_started/setup.html) 10 | -------------------------------------------------------------------------------- /docker/Dockerfiles/Dockerfile.in.perl: -------------------------------------------------------------------------------- 1 | # -*- mode: dockerfile -*- 2 | # part of the dockerfile to install the perl binding 3 | 4 | COPY install/perl.sh install/ 5 | RUN install/perl.sh && \ 6 | cd /mxnet/perl-package/AI-MXNetCAPI/ && perl Makefile.PL && make install && \ 7 | cd /mxnet/perl-package/AI-NNVMCAPI/ && perl Makefile.PL && make install && \ 8 | cd /mxnet/perl-package/AI-MXNet/ && perl Makefile.PL && make install 9 | -------------------------------------------------------------------------------- /tools/caffe_converter/README.md: -------------------------------------------------------------------------------- 1 | # Convert Caffe Model to Mxnet Format 2 | 3 | This folder contains the source codes for this tool. 4 | 5 | If Caffe with python binding is installed, we can use the following command to 6 | convert a Resnet-50 pretrained model. 7 | 8 | ```bash 9 | python convert_caffe_modelzoo.py resnet-50 10 | ``` 11 | 12 | Please refer to 13 | [docs/faq/caffe.md](../../docs/faq/caffe.md) for more details. 14 | -------------------------------------------------------------------------------- /docs/error/404.md: -------------------------------------------------------------------------------- 1 | # Page Does Not Exist 2 | 3 | If you're here that means you requested a page that doesn't exist. Sorry about that! Maybe try the search box to find what you're looking for, or navigate to the [Home Page](../index.html). Also, make sure you're looking in the correct version, as some features may only be available in [newer versions](https://github.com/apache/incubator-mxnet/releases) or the [master branch](../versions/master). 4 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test.mk: -------------------------------------------------------------------------------- 1 | TEST_SRC = $(wildcard tests/test_*.cc) 2 | TEST = $(patsubst tests/test_%.cc, tests/test_%, $(TEST_SRC)) 3 | 4 | # -ltcmalloc_and_profiler 5 | LDFLAGS = -Wl,-rpath,$(DEPS_PATH)/lib $(PS_LDFLAGS_SO) -pthread 6 | tests/% : tests/%.cc build/libps.a 7 | $(CXX) -std=c++0x $(CFLAGS) -MM -MT tests/$* $< >tests/$*.d 8 | $(CXX) -std=c++0x $(CFLAGS) -o $@ $(filter %.cc %.a, $^) $(LDFLAGS) 9 | 10 | -include tests/*.d 11 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-Contrib/Changes: -------------------------------------------------------------------------------- 1 | Revision history for Perl extension AI::MXNet::Gluon::Contrib 2 | 3 | 1.33 Thu Oct 4 13:25:56 PDT 2018 4 | - Fixed kwalitee issues. 5 | 6 | 1.32 Sun Jul 15 12:12:15 PDT 2018 7 | - Missing POD fixes. 8 | 9 | 1.31 Sat Jul 14 08:33:21 PDT 2018 10 | - Fixed CPAN indexing issue. 11 | 12 | 1.3 Tue Jul 10 21:19:13 PDT 2018 13 | - Initial release 14 | 15 | -------------------------------------------------------------------------------- /docs/api/python/contrib/contrib.md: -------------------------------------------------------------------------------- 1 | # Contrib Package 2 | 3 | ## Overview 4 | 5 | The `Contrib` APIs, defined in the `mxnet.contrib` package, provides 6 | many useful experimental APIs for new features. 7 | This is a place for the community to try out the new features, 8 | so that feature contributors can receive feedback. 9 | 10 | ```eval_rst 11 | .. warning:: This package contains experimental APIs and may change in the near future. 12 | ``` 13 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/unittest_logging.cc: -------------------------------------------------------------------------------- 1 | // Copyright by Contributors 2 | #define DMLC_LOG_FATAL_THROW 0 3 | #include 4 | #include 5 | 6 | using namespace std; 7 | 8 | TEST(Logging, basics) { 9 | LOG(INFO) << "hello"; 10 | LOG(ERROR) << "error"; 11 | 12 | int x = 1, y = 1; 13 | CHECK_EQ(x, y); 14 | CHECK_GE(x, y); 15 | 16 | int *z = &x; 17 | CHECK_EQ(*CHECK_NOTNULL(z), x); 18 | 19 | ASSERT_DEATH(CHECK_NE(x, y), ".*"); 20 | } 21 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/cmake/gtest_cmake.in: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.2) 2 | 3 | project(googletest-download NONE) 4 | 5 | include(ExternalProject) 6 | ExternalProject_Add(googletest 7 | GIT_REPOSITORY https://github.com/google/googletest.git 8 | GIT_TAG master 9 | SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" 10 | BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build" 11 | CONFIGURE_COMMAND "" 12 | BUILD_COMMAND "" 13 | INSTALL_COMMAND "" 14 | TEST_COMMAND "" 15 | ) 16 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/doc/index.md: -------------------------------------------------------------------------------- 1 | DMLC-Core Documentation 2 | ======================= 3 | DMLC Core contains common codebase to help us build machine learning toolkits easier. 4 | 5 | Contents 6 | -------- 7 | * [Parameter Structure for Machine Learning](parameter.md) 8 | * [Doxygen C++ API Reference](https://dmlc-core.readthedocs.org/en/latest/doxygen) 9 | 10 | Indices and tables 11 | ------------------ 12 | 13 | ```eval_rst 14 | * :ref:`genindex` 15 | * :ref:`modindex` 16 | * :ref:`search` 17 | ``` 18 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/dmlc_unittest.mk: -------------------------------------------------------------------------------- 1 | UTEST_ROOT=test/unittest 2 | UNITTEST=$(UTEST_ROOT)/dmlc_unittest 3 | UNITTEST_SRC=$(wildcard $(UTEST_ROOT)/*.cc) 4 | UNITTEST_OBJ=$(patsubst %.cc,%.o,$(UNITTEST_SRC)) 5 | 6 | GTEST_LIB=$(GTEST_PATH)/lib/ 7 | GTEST_INC=$(GTEST_PATH)/include/ 8 | 9 | $(UTEST_ROOT)/%.o : $(UTEST_ROOT)/%.cc libdmlc.a 10 | $(CXX) $(CFLAGS) -I$(GTEST_INC) -o $@ -c $< 11 | 12 | $(UNITTEST) : $(UNITTEST_OBJ) 13 | $(CXX) $(CFLAGS) -L$(GTEST_LIB) -o $@ $^ libdmlc.a $(LDFLAGS) -lgtest 14 | -------------------------------------------------------------------------------- /tests/python/README.md: -------------------------------------------------------------------------------- 1 | Python Test Case 2 | ================ 3 | This folder contains test cases for mxnet in python. 4 | 5 | * [common](common) contains common utils for all test modules. 6 | - From subfolders, import with ```from ..common import get_data``` 7 | * [unittest](unittest) contains unit test component for each modules. 8 | - These are basic tests that must pass for every commit. 9 | * [train](train) contains tests that runs on real network training. 10 | - These tests can be time consuming. 11 | -------------------------------------------------------------------------------- /tools/caffe_translator/build_from_source.md: -------------------------------------------------------------------------------- 1 | ### Build Caffe Translator from source 2 | 3 | #### Prerequisites: 4 | - JDK 5 | 6 | #### Instructions to build 7 | 8 | Step 1: Clone the code: 9 | ``` 10 | git clone https://github.com/apache/incubator-mxnet.git mxnet 11 | ``` 12 | Step 2: CD to CaffeTranslator directory 13 | ``` 14 | cd mxnet/tools/caffe_translator/ 15 | ``` 16 | Step 3: Build 17 | ``` 18 | gradle build 19 | ``` 20 | 21 | Caffe Translator will be built at `build/libs/caffe-translator-.jar` 22 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/src/build_config.cc: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright (c) 2018 by Contributors 3 | * \file build_config.cc 4 | * \brief Companion source for build_config.h 5 | * \author Hyunsu Philip Cho 6 | */ 7 | 8 | #include 9 | 10 | #ifdef DMLC_EMIT_FOPEN64_REDEFINE_WARNING 11 | #ifdef _MSC_VER 12 | #pragma message("Redefining fopen64 with std::fopen") 13 | #else 14 | #warning "Redefining fopen64 with std::fopen" 15 | #endif // _MSC_VER 16 | #endif // DMLC_EMIT_FOPEN64_REDEFINE_WARNING 17 | -------------------------------------------------------------------------------- /example/adversary/README.md: -------------------------------------------------------------------------------- 1 | # Adversarial examples 2 | 3 | This demonstrates the concept of "adversarial examples" from [1] showing how to fool a well-trained CNN. 4 | The surprising idea is that one can easily generate examples which the CNN will consistently 5 | make the wrong prediction for that a human can easily tell are correct. 6 | 7 | [1] Goodfellow, Ian J., Jonathon Shlens, and Christian Szegedy. "Explaining and harnessing adversarial examples." [arXiv preprint arXiv:1412.6572 (2014)](https://arxiv.org/abs/1412.6572) 8 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/scripts/travis/travis_osx_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ${TRAVIS_OS_NAME} != "osx" ]; then 6 | exit 0 7 | fi 8 | 9 | # Update command line tool to avoid an error: 10 | # "_stdio.h: No such file or directory" 11 | softwareupdate --list 12 | softwareupdate --install "Command Line Tools (macOS High Sierra version 10.13) for Xcode-9.4" 13 | 14 | brew install gcc@7 || brew link --overwrite gcc@7 15 | brew update 16 | brew upgrade python3 17 | python3 -m pip install --upgrade pip 18 | -------------------------------------------------------------------------------- /perl-package/AI-MXNetCAPI/README: -------------------------------------------------------------------------------- 1 | AI-MXNetCAPI version 1.33 2 | ===================== 3 | 4 | Swig interface to MXNet c api. 5 | 6 | INSTALLATION 7 | 8 | To install this module type the following: 9 | 10 | perl Makefile.PL 11 | make 12 | make test 13 | make install 14 | 15 | DEPENDENCIES 16 | 17 | This module requires mxnet http://mxnet.io 18 | It's used by AI::MXNet 19 | 20 | COPYRIGHT AND LICENCE 21 | 22 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 23 | 24 | -------------------------------------------------------------------------------- /perl-package/AI-NNVMCAPI/README: -------------------------------------------------------------------------------- 1 | AI-NNVMCAPI version 1.3 2 | ===================== 3 | 4 | Swig interface to MXNet c api. 5 | 6 | INSTALLATION 7 | 8 | To install this module type the following: 9 | 10 | perl Makefile.PL 11 | make 12 | make test 13 | make install 14 | 15 | DEPENDENCIES 16 | 17 | This module requires mxnet http://mxnet.io 18 | It's used by AI::MXNet. 19 | 20 | COPYRIGHT AND LICENCE 21 | 22 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 23 | 24 | 25 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/make/ps.mk: -------------------------------------------------------------------------------- 1 | #--------------------------------------------------------------------------------------- 2 | # parameter server configuration script 3 | # 4 | # include ps.mk after the variables are set 5 | # 6 | #---------------------------------------------------------------------------------------- 7 | 8 | ifeq ($(USE_KEY32), 1) 9 | ADD_CFLAGS += -DUSE_KEY32=1 10 | endif 11 | 12 | PS_LDFLAGS_SO = -L$(DEPS_PATH)/lib -lprotobuf-lite -lzmq 13 | PS_LDFLAGS_A = $(addprefix $(DEPS_PATH)/lib/, libprotobuf-lite.a libzmq.a) 14 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/multi-label/README.md: -------------------------------------------------------------------------------- 1 | # multi-label 2 | 3 | This is a quick example of doing multi-label classification. 4 | It involves using a proxy to implement the DataIter to make a custom 5 | data iterator for MNIST 6 | 7 | To run 8 | `lein run`. This will execute the cpu version. 9 | 10 | You can control the devices you run on by doing: 11 | 12 | `lein run :cpu` - This will run on 1 cpu device 13 | `lein run :gpu` - This will run on 1 gpu device 14 | 15 | This example only works on 1 device 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /example/image-classification/symbols/README.md: -------------------------------------------------------------------------------- 1 | # Symbol 2 | 3 | This fold contains definition of various networks. To add a new network, please 4 | use the following format. 5 | 6 | ## Python 7 | 8 | - A file implements one network proposed in a paper, with the network name as the 9 | filename. 10 | - Mention the paper and the modifications made if any at the beginning 11 | of the file. 12 | - Indicate how to reproduce the accuracy numbers in the paper if it is not straightforward 13 | - Provide a function `get_symbol()` that return the network 14 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/examples/sparse/matrix_factorization/README.md: -------------------------------------------------------------------------------- 1 | Matrix Factorization w/ Sparse Embedding 2 | =========== 3 | The example demonstrates the basic usage of the SparseEmbedding operator in MXNet, adapted based on @leopd's recommender examples. 4 | The operator is available on both CPU and GPU. This is for demonstration purpose only. 5 | 6 | - get_data.sh 7 | - perl train.pl 8 | - To compare the training speed with (dense) Embedding, run perl train.pl --use-dense 1 9 | - To run the example on the GPU, run perl train.pl --use-gpu 1 10 | -------------------------------------------------------------------------------- /tests/nightly/broken_link_checker_test/README.md: -------------------------------------------------------------------------------- 1 | # Broken link checker test 2 | 3 | This folder contains the scripts that are required to run the nightly job of checking the broken links. 4 | 5 | ## JenkinsfileForBLC 6 | This is configuration file for jenkins job. 7 | 8 | ## Details 9 | The `broken_link_checker.sh` is a top level script that invokes the `test_broken_links.py` and `check_regression.sh` scripts. 10 | The `test_broken_links.py` invokes broken link checker tool (blc) from nodeJs and reports the list of URLs that are not accessible. 11 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/travis/travis_setup_env.sh: -------------------------------------------------------------------------------- 1 | # script to be sourced in travis yml 2 | # setup all enviroment variables 3 | 4 | export CACHE_PREFIX=${HOME}/.cache/usr 5 | export PATH=${HOME}/.local/bin:${PATH} 6 | export PATH=${PATH}:${CACHE_PREFIX}/bin 7 | export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}:${CACHE_PREFIX}/include 8 | export C_INCLUDE_PATH=${C_INCLUDE_PATH}:${CACHE_PREFIX}/include 9 | export LIBRARY_PATH=${LIBRARY_PATH}:${CACHE_PREFIX}/lib 10 | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CACHE_PREFIX}/lib 11 | 12 | # alias make="make -j4" 13 | -------------------------------------------------------------------------------- /docs/api/python/callback/callback.md: -------------------------------------------------------------------------------- 1 | # Callback API 2 | 3 | ```eval_rst 4 | .. currentmodule:: mxnet.ndarray 5 | ``` 6 | 7 | ## Overview 8 | 9 | This document lists the routines of the callback package 10 | 11 | ```eval_rst 12 | .. autosummary:: 13 | :nosignatures: 14 | 15 | mxnet.callback 16 | ``` 17 | 18 | ## API Reference 19 | 20 | 21 | 22 | ```eval_rst 23 | .. automodule:: mxnet.callback 24 | :members: 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /example/captcha/README.md: -------------------------------------------------------------------------------- 1 | This is the R version of [captcha recognition](http://blog.xlvector.net/2016-05/mxnet-ocr-cnn/) example by xlvector and it can be used as an example of multi-label training. For a captcha below, we consider it as an image with 4 labels and train a CNN over the data set. 2 | 3 | ![](captcha_example.png) 4 | 5 | You can download the images and `.rec` files from [here](https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/data/captcha_example.zip). Since each image has 4 labels, please remember to use `label_width=4` when generating the `.rec` files. 6 | -------------------------------------------------------------------------------- /example/module/README.md: -------------------------------------------------------------------------------- 1 | # Module Usage Example 2 | 3 | This folder contains usage examples for MXNet module. 4 | 5 | [mnist_mlp.py](https://github.com/apache/incubator-mxnet/blob/master/example/module/mnist_mlp.py): Trains a simple multilayer perceptron on the MNIST dataset 6 | 7 | [python_loss](https://github.com/apache/incubator-mxnet/blob/master/example/module/python_loss.py): Usage example for PythonLossModule 8 | 9 | [sequential_module](https://github.com/apache/incubator-mxnet/blob/master/example/module/sequential_module.py): Usage example for SequentialModule 10 | -------------------------------------------------------------------------------- /docs/api/python/tools/visualization.md: -------------------------------------------------------------------------------- 1 | # Visualization 2 | 3 | This module contains visualization features. 4 | 5 | ```eval_rst 6 | .. currentmodule:: mxnet.visualization 7 | ``` 8 | 9 | ```eval_rst 10 | .. autosummary:: 11 | :nosignatures: 12 | 13 | mxnet.visualization 14 | ``` 15 | 16 | ## API Reference 17 | 18 | 19 | 20 | ```eval_rst 21 | 22 | .. automodule:: mxnet.visualization 23 | :members: 24 | 25 | ``` 26 | 27 | 28 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/gan/README.md: -------------------------------------------------------------------------------- 1 | # gan 2 | 3 | This is an example of how to do a GAN with the MNIST data 4 | 5 | ## Usage 6 | 7 | Do `lein run` and the images generated will be in the `results` directory. The gout* images are the ones generated, the diff* images are the visualization of the input gradient different fed to the generator 8 | 9 | `lein run :gpu` will run on gpu 10 | 11 | If you are running on AWS you will need to setup X11 for graphics 12 | `sudo apt install xauth x11-apps` 13 | 14 | then relogin in `ssh -X -i creds ubuntu@yourinstance` 15 | 16 | 17 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/unittest_array_view.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | void ArrayViewTest(dmlc::array_view view, int base) { 6 | int cnt = base; 7 | for (int v : view) { 8 | CHECK_EQ(v, cnt); 9 | ++cnt; 10 | } 11 | } 12 | 13 | TEST(ArrayView, Basic) { 14 | std::vector vec{0, 1, 2}; 15 | ArrayViewTest(vec, 0); 16 | int arr[] = {1, 2, 3}; 17 | ArrayViewTest(dmlc::array_view(arr, arr + 3), 1); 18 | dmlc::array_view a = vec; 19 | CHECK_EQ(a.size(), vec.size()); 20 | } 21 | -------------------------------------------------------------------------------- /docs/api/python/tools/test_utils.md: -------------------------------------------------------------------------------- 1 | # Test Utilities 2 | 3 | This module has a variety of tools that help using and testing MXNet. 4 | 5 | ```eval_rst 6 | .. currentmodule:: mxnet.test_utils 7 | ``` 8 | 9 | ```eval_rst 10 | .. autosummary:: 11 | :nosignatures: 12 | 13 | mxnet.test_utils 14 | ``` 15 | 16 | ## API Reference 17 | 18 | 19 | 20 | ```eval_rst 21 | 22 | .. automodule:: mxnet.test_utils 23 | :members: 24 | 25 | ``` 26 | 27 | 28 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/doc/sphinx_util.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """Helper utilty function for customization.""" 3 | import sys 4 | import os 5 | import docutils 6 | import subprocess 7 | 8 | if os.environ.get('READTHEDOCS', None) == 'True': 9 | subprocess.call('cd ..; rm -rf recommonmark;' + 10 | 'git clone https://github.com/tqchen/recommonmark', shell=True) 11 | 12 | sys.path.insert(0, os.path.abspath('../recommonmark/')) 13 | from recommonmark import parser, transform 14 | 15 | MarkdownParser = parser.CommonMarkParser 16 | AutoStructify = transform.AutoStructify 17 | -------------------------------------------------------------------------------- /DISCLAIMER: -------------------------------------------------------------------------------- 1 | Apache MXNet (incubating) is an effort undergoing incubation at The 2 | Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. 3 | 4 | Incubation is required of all newly accepted 5 | projects until a further review indicates that the 6 | infrastructure, communications, and decision making process have 7 | stabilized in a manner consistent with other successful ASF 8 | projects. 9 | 10 | While incubation status is not necessarily a reflection 11 | of the completeness or stability of the code, it does indicate 12 | that the project has yet to be fully endorsed by the ASF. 13 | -------------------------------------------------------------------------------- /cpp-package/example/feature_extract/README.md: -------------------------------------------------------------------------------- 1 | This example shows how to extract features with a pretrained model. 2 | 3 | Execute `run.sh` to: 4 | - Download a pretrained model 5 | - Download sample pictures (`dog.jpg` and `cat.jpg`) 6 | - Compile the files 7 | - Execute the featurization on `dog.jpg` and `cat.jpg` 8 | 9 | 10 | Note: 11 | 1. The filename of network parameters may vary, line 67 in `feature_extract.cpp` should be updated accordingly. 12 | 2. You need to build MXNet from source to get access to the `lib/libmxnet.so` or point `LD_LIBRARY_PATH` to where it is installed in your system 13 | -------------------------------------------------------------------------------- /example/sparse/wide_deep/README.md: -------------------------------------------------------------------------------- 1 | ## Wide and Deep Learning 2 | 3 | The example demonstrates how to train [wide and deep model](https://arxiv.org/abs/1606.07792). The [Census Income Data Set](https://archive.ics.uci.edu/ml/datasets/Census+Income) that this example uses for training is hosted by the [UC Irvine Machine Learning Repository](https://archive.ics.uci.edu/ml/datasets/). Tricks of feature engineering are adapted from tensorflow's [wide and deep tutorial](https://github.com/tensorflow/models/tree/master/official/wide_deep). 4 | 5 | The final accuracy should be around 85%. 6 | 7 | - `python train.py` 8 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/rnn/README.md: -------------------------------------------------------------------------------- 1 | # rnn 2 | 3 | 4 | Demonstration of LSTM RNN trainined using Obamas text 5 | 6 | ## Usage 7 | 8 | 9 | run `./get_data.sh to download the training corpus as well as pretrained model. 10 | 11 | Run `lein run` to start training the corpus from scratch for 2 epochs and then 12 | show the result of training after 75 epochs (cpu) 13 | 14 | You can control the devices you run on by doing: 15 | 16 | `lein run :cpu 2` - This will run on 2 cpu devices 17 | `lein run :gpu 1` - This will run on 1 gpu device 18 | `lein run :gpu 2` - This will run on 2 gpu devices 19 | 20 | 21 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/examples/sparse/wide_deep/README.md: -------------------------------------------------------------------------------- 1 | ## Wide and Deep Learning 2 | 3 | The example demonstrates how to train [wide and deep model](https://arxiv.org/abs/1606.07792). The [Census Income Data Set](https://archive.ics.uci.edu/ml/datasets/Census+Income) that this example uses for training is hosted by the [UC Irvine Machine Learning Repository](https://archive.ics.uci.edu/ml/datasets/). Tricks of feature engineering are adapted from tensorflow's [wide and deep tutorial](https://github.com/tensorflow/models/tree/master/official/wide_deep). 4 | 5 | The final accuracy should be around 84%. 6 | 7 | - perl train.pl 8 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/include/dmlc/build_config.h: -------------------------------------------------------------------------------- 1 | /*! 2 | * Copyright (c) 2018 by Contributors 3 | * \file build_config.h 4 | * \brief Default detection logic for fopen64. May be overriden by CMake 5 | * \author KOLANICH 6 | */ 7 | #ifndef DMLC_BUILD_CONFIG_H_ 8 | #define DMLC_BUILD_CONFIG_H_ 9 | 10 | #if DMLC_USE_FOPEN64 && \ 11 | (!defined(__GNUC__) || (defined __ANDROID__) || (defined __FreeBSD__) \ 12 | || (defined __APPLE__) || ((defined __MINGW32__) && !(defined __MINGW64__))) 13 | #define DMLC_EMIT_FOPEN64_REDEFINE_WARNING 14 | #define fopen64 std::fopen 15 | #endif 16 | 17 | #endif // DMLC_BUILD_CONFIG_H_ 18 | -------------------------------------------------------------------------------- /cpp-package/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 by Contributors 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /docs/api/python/metric/metric.md: -------------------------------------------------------------------------------- 1 | # Evaluation Metric API 2 | 3 | ```eval_rst 4 | .. currentmodule:: mxnet.metric 5 | ``` 6 | 7 | ## Overview 8 | 9 | This document lists all the evaluation metrics available to evaluate 10 | the performance of a learned model. 11 | 12 | ```eval_rst 13 | .. autosummary:: 14 | :nosignatures: 15 | 16 | mxnet.metric 17 | ``` 18 | 19 | ## API Reference 20 | 21 | 22 | 23 | ```eval_rst 24 | .. automodule:: mxnet.metric 25 | :members: 26 | ``` 27 | 28 | 29 | -------------------------------------------------------------------------------- /example/rnn/README.md: -------------------------------------------------------------------------------- 1 | Recurrent Neural Network Examples 2 | =========== 3 | 4 | This directory contains functions for creating recurrent neural networks 5 | models using high level mxnet.rnn interface. 6 | 7 | Here is a short overview of what is in this directory. 8 | 9 | Directory | What's in it? 10 | --- | --- 11 | `word_lm/` | Language model trained on the Sherlock Holmes dataset achieving state of the art performance 12 | `bucketing/` | Language model with bucketing API with python 13 | `bucket_R/` | Language model with bucketing API with R 14 | `old/` | Language model trained with low level symbol interface (deprecated) 15 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 by Contributors 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/docs/env.md: -------------------------------------------------------------------------------- 1 | # environment variables 2 | 3 | The variables must be set for starting 4 | 5 | - `DMLC_NUM_WORKER` : the number of workers 6 | - `DMLC_NUM_SERVER` : the number of servers 7 | - `DMLC_ROLE` : the role of the current node, can be `worker`, `server`, or `scheduler` 8 | - `DMLC_PS_ROOT_URI` : the ip or hostname of the scheduler node 9 | - `DMLC_PS_ROOT_PORT` : the port that the scheduler node is listening 10 | 11 | additional variables: 12 | 13 | - `DMLC_INTERFACE` : the network interface a node should use. in default choose 14 | automatically 15 | - `DMLC_LOCAL` : runs in local machines, no network is needed 16 | -------------------------------------------------------------------------------- /perl-package/AI-MXNetCAPI/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: 'Swig interface to mxnet c api' 3 | author: 4 | - 'Sergey Kolychev ' 5 | build_requires: 6 | ExtUtils::MakeMaker: '0' 7 | configure_requires: 8 | ExtUtils::MakeMaker: '0' 9 | dynamic_config: 0 10 | generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.143240' 11 | license: apache 12 | meta-spec: 13 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 14 | version: '1.4' 15 | name: AI-MXNetCAPI 16 | no_index: 17 | directory: 18 | - t 19 | - inc 20 | requires: 21 | Test::More: '0' 22 | version: '1.33' 23 | -------------------------------------------------------------------------------- /perl-package/AI-NNVMCAPI/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: 'Swig interface to nnvm c api' 3 | author: 4 | - 'Sergey Kolychev ' 5 | build_requires: 6 | ExtUtils::MakeMaker: '0' 7 | configure_requires: 8 | ExtUtils::MakeMaker: '0' 9 | dynamic_config: 0 10 | generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.143240' 11 | license: apache 12 | meta-spec: 13 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 14 | version: '1.4' 15 | name: AI-NNVMCAPI 16 | no_index: 17 | directory: 18 | - t 19 | - inc 20 | requires: 21 | Test::More: '0' 22 | version: '1.3' 23 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-Contrib/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: 'Perl interface to MXNet Gluon Contrib' 3 | author: 4 | - 'Sergey Kolychev ' 5 | build_requires: {} 6 | configure_requires: 7 | ExtUtils::MakeMaker: '6.30' 8 | dynamic_config: 0 9 | generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.143240' 10 | license: apache 11 | meta-spec: 12 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 13 | version: '1.4' 14 | name: AI-MXNet-Gluon-Contrib 15 | no_index: 16 | directory: 17 | - t 18 | - inc 19 | requires: 20 | AI::MXNet: '1.31' 21 | version: '1.33' 22 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/unittest/unittest_param.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | struct LearningRateParam : public dmlc::Parameter { 5 | float learning_rate; 6 | DMLC_DECLARE_PARAMETER(LearningRateParam) { 7 | DMLC_DECLARE_FIELD(learning_rate).set_default(0.01); 8 | } 9 | }; 10 | 11 | DMLC_REGISTER_PARAMETER(LearningRateParam); 12 | 13 | TEST(Parameter, parsing_small_float) { 14 | LearningRateParam param; 15 | std::map kwargs; 16 | kwargs["learning_rate"] = "1e-100"; 17 | EXPECT_THROW( 18 | param.Init(kwargs), 19 | dmlc::ParamError 20 | ); 21 | } 22 | -------------------------------------------------------------------------------- /.codecov.yml: -------------------------------------------------------------------------------- 1 | # Codecov.io configuration file 2 | codecov: 3 | notify: 4 | require_ci_to_pass: yes 5 | 6 | coverage: 7 | precision: 2 8 | round: down 9 | range: "70...100" 10 | 11 | status: 12 | project: yes 13 | patch: yes 14 | changes: no 15 | 16 | parsers: 17 | gcov: 18 | branch_detection: 19 | conditional: yes 20 | loop: yes 21 | method: no 22 | macro: no 23 | 24 | ignore: 25 | - "cpp-package/example/**/*" 26 | - "tests/**/*" 27 | 28 | # Disable comments for now to gather data in the background 29 | comment: false 30 | # layout: "header, diff" 31 | # behavior: default 32 | # require_changes: no 33 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/include/ps/range.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015 by Contributors 3 | */ 4 | #ifndef PS_RANGE_H_ 5 | #define PS_RANGE_H_ 6 | #include "ps/internal/utils.h" 7 | namespace ps { 8 | 9 | /** 10 | * \brief a range [begin, end) 11 | */ 12 | class Range { 13 | public: 14 | Range() : Range(0, 0) {} 15 | Range(uint64_t begin, uint64_t end) : begin_(begin), end_(end) { } 16 | 17 | uint64_t begin() const { return begin_; } 18 | uint64_t end() const { return end_; } 19 | uint64_t size() const { return end_ - begin_; } 20 | private: 21 | uint64_t begin_; 22 | uint64_t end_; 23 | }; 24 | 25 | } // namespace ps 26 | #endif // PS_RANGE_H_ 27 | -------------------------------------------------------------------------------- /julia/plugins/README.md: -------------------------------------------------------------------------------- 1 | # Plugins of MXNet.jl 2 | 3 | This directory contains *plugins* of MXNet.jl. A plugin is typically a component that could be part of MXNet.jl, but excluded from the `mx` namespace. The plugins are included here primarily for two reasons: 4 | 5 | * To minimize the dependency of MXNet.jl on other optional packages. 6 | * To serve as examples on how to extend some components of MXNet.jl. 7 | 8 | The most straightforward way to use a plugin is to `include` the code. For example 9 | 10 | ```julia 11 | include(joinpath(Pkg.dir("MXNet"), "plugins", "io", "svmlight.jl")) 12 | 13 | provider = SVMLightProvider("/path/to/dataset", 100) 14 | ``` 15 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/docs/sphinx_util.py: -------------------------------------------------------------------------------- 1 | import sys, os, subprocess 2 | 3 | 4 | if not os.path.exists('../recommonmark'): 5 | subprocess.call('cd ..; git clone https://github.com/tqchen/recommonmark', shell = True) 6 | else: 7 | subprocess.call('cd ../recommonmark; git pull', shell=True) 8 | 9 | sys.path.insert(0, os.path.abspath('../recommonmark/')) 10 | 11 | from recommonmark import parser, transform 12 | MarkdownParser = parser.CommonMarkParser 13 | AutoStructify = transform.AutoStructify 14 | 15 | # MarkdownParser.github_doc_root = github_doc_root 16 | 17 | def generate_doxygen_xml(app): 18 | """Run the doxygen make commands""" 19 | subprocess.call('doxygen') 20 | -------------------------------------------------------------------------------- /example/svm_mnist/README.md: -------------------------------------------------------------------------------- 1 | # Use case with Support Vector Machine 2 | 3 | To ensure that not only the implementation is learning, but is able to outsmart the softmax, as [this article](https://arxiv.org/pdf/1306.0239.pdf) suggests, I ran svm_mnist.py script. It was based on the MNIST experiment description on the article and [this tutorial](https://github.com/dmlc/mxnet-gtc-tutorial/blob/master/tutorial.ipynb). 4 | 5 | 6 | ## To this you will need 7 | 8 | * [Numpy](http://www.scipy.org/scipylib/download.html) 9 | * [Sklearn](http://scikit-learn.org/stable/install.html) 10 | 11 | I recommend installing [matplot](http://matplotlib.org/users/installing.html) to visualize examples 12 | -------------------------------------------------------------------------------- /scala-package/examples/src/main/scala/org/apache/mxnetexamples/gan/README.md: -------------------------------------------------------------------------------- 1 | # GAN MNIST Example for Scala 2 | This is the GAN MNIST Training Example implemented for Scala type-safe api 3 | 4 | This example is only for Illustration and not modeled to achieve the best accuracy. 5 | ## Setup 6 | ### Download the source File 7 | ```$xslt 8 | https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/mnist/mnist.zip 9 | ``` 10 | ### Unzip the file 11 | ```$xslt 12 | unzip mnist.zip 13 | ``` 14 | ### Arguement Configuration 15 | Then you need to define the arguments that you would like to pass in the model: 16 | ```$xslt 17 | --mnist-data-path 18 | ``` -------------------------------------------------------------------------------- /example/bi-lstm-sort/README.md: -------------------------------------------------------------------------------- 1 | This is an example of using bidirection lstm to sort an array. 2 | 3 | Run the training script by doing the following: 4 | 5 | ``` 6 | python lstm_sort.py --start-range 100 --end-range 1000 --cpu 7 | ``` 8 | You can provide the start-range and end-range for the numbers and whether to train on the cpu or not. 9 | By default the script tries to train on the GPU. The default start-range is 100 and end-range is 1000. 10 | 11 | At last, test model by doing the following: 12 | 13 | ``` 14 | python infer_sort.py 234 189 785 763 231 15 | ``` 16 | 17 | This should output the sorted seq like the following: 18 | ``` 19 | 189 20 | 231 21 | 234 22 | 763 23 | 785 24 | ``` 25 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-ModelZoo/MANIFEST: -------------------------------------------------------------------------------- 1 | Changes 2 | examples/image_classification.pl 3 | lib/AI/MXNet/Gluon/ModelZoo.pm 4 | lib/AI/MXNet/Gluon/ModelZoo/ModelStore.pm 5 | lib/AI/MXNet/Gluon/ModelZoo/Vision.pm 6 | lib/AI/MXNet/Gluon/ModelZoo/Vision/AlexNet.pm 7 | lib/AI/MXNet/Gluon/ModelZoo/Vision/DenseNet.pm 8 | lib/AI/MXNet/Gluon/ModelZoo/Vision/Inception.pm 9 | lib/AI/MXNet/Gluon/ModelZoo/Vision/MobileNet.pm 10 | lib/AI/MXNet/Gluon/ModelZoo/Vision/ResNet.pm 11 | lib/AI/MXNet/Gluon/ModelZoo/Vision/SqueezeNet.pm 12 | lib/AI/MXNet/Gluon/ModelZoo/Vision/VGG.pm 13 | Makefile.PL 14 | MANIFEST 15 | META.json 16 | META.yml 17 | README 18 | t/AI-MXNet-Gluon-ModelZoo.t 19 | t/test_gluon_model_zoo.t 20 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/iostream_test.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char *argv[]) { 5 | if (argc < 2) { 6 | printf("Usage: \n"); 7 | return 0; 8 | } 9 | {// output 10 | dmlc::Stream *fs = dmlc::Stream::Create(argv[1], "w"); 11 | dmlc::ostream os(fs); 12 | os << "hello-world " << 1e-10<< std::endl; 13 | delete fs; 14 | } 15 | {// input 16 | std::string name; 17 | double data; 18 | dmlc::Stream *fs = dmlc::Stream::Create(argv[1], "r"); 19 | dmlc::istream is(fs); 20 | is >> name >> data; 21 | std::cout << name << " " << data << std::endl; 22 | delete fs; 23 | } 24 | return 0; 25 | } 26 | -------------------------------------------------------------------------------- /example/ssd/tools/caffe_converter/README.md: -------------------------------------------------------------------------------- 1 | # Convert Caffe Model to Mxnet Format 2 | 3 | This folder contains the source codes for this tool. 4 | 5 | If Caffe with python binding is installed, we can use the following command to 6 | convert a Resnet-50 pretrained model. 7 | 8 | ```bash 9 | python convert_caffe_modelzoo.py resnet-50 10 | ``` 11 | 12 | Please refer to 13 | [docs/faq/caffe.md](../../docs/faq/caffe.md) for more details. 14 | 15 | ### How to use 16 | To convert ssd caffemodels, Use: `python convert_model.py prototxt caffemodel outputprefix` 17 | 18 | ### Note 19 | 20 | Use this converter for ssd caffemodels only. General converter is available in `mxnet/tools/caffe_converter`. 21 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-ModelZoo/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: 'Perl interface to MXNet Gluon ModelZoo' 3 | author: 4 | - 'Sergey Kolychev ' 5 | build_requires: {} 6 | configure_requires: 7 | ExtUtils::MakeMaker: '6.30' 8 | dynamic_config: 0 9 | generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.143240' 10 | license: apache 11 | meta-spec: 12 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 13 | version: '1.4' 14 | name: AI-MXNet-Gluon-ModelZoo 15 | no_index: 16 | directory: 17 | - t 18 | - inc 19 | requires: 20 | AI::MXNet: '1.31' 21 | AI::MXNet::Gluon::Contrib: '1.3' 22 | IO::Uncompress::Unzip: '0' 23 | version: '1.33' 24 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/cmake/Modules/FindZMQ.cmake: -------------------------------------------------------------------------------- 1 | # - Try to find ZMQ 2 | # Once done this will define 3 | # ZMQ_FOUND - System has ZMQ 4 | # ZMQ_INCLUDE_DIRS - The ZMQ include directories 5 | # ZMQ_LIBRARIES - The libraries needed to use ZMQ 6 | # ZMQ_DEFINITIONS - Compiler switches required for using ZMQ 7 | 8 | find_path ( ZMQ_INCLUDE_DIR zmq.h ) 9 | find_library ( ZMQ_LIBRARY NAMES zmq ) 10 | 11 | set ( ZMQ_LIBRARIES ${ZMQ_LIBRARY} ) 12 | set ( ZMQ_INCLUDE_DIRS ${ZMQ_INCLUDE_DIR} ) 13 | 14 | include ( FindPackageHandleStandardArgs ) 15 | # handle the QUIETLY and REQUIRED arguments and set ZMQ_FOUND to TRUE 16 | # if all listed variables are TRUE 17 | find_package_handle_standard_args ( ZMQ DEFAULT_MSG ZMQ_LIBRARY ZMQ_INCLUDE_DIR ) -------------------------------------------------------------------------------- /docs/tutorials/scala/index.md: -------------------------------------------------------------------------------- 1 | # MXNet-Scala Tutorials 2 | 3 | ## Installation & Setup 4 | 5 | Using MXNet-Scala is easiest with Maven. You have a couple of options for setting up that depend on your environment. 6 | 7 | **Note:** Windows is not yet supported. 8 | 9 | * [MXNet-Scala Setup Guide Using Maven](../../install/scala_setup.md) 10 | * [Setup Scala with MXNet and Create a MXNet-Scala Project with IntelliJ](mxnet_scala_on_intellij.md) 11 | 12 | ## Tutorials 13 | 14 | * [MNIST with MXNet-Scala](mnist.md) 15 | * [Character-level Language Model with MXNet-Scala](char_lstm.md) 16 | 17 | See the [tutorials](http://mxnet.incubator.apache.org/tutorials/index.html#other-languages-api-tutorials) page on MXNet.io for more. 18 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/README.md: -------------------------------------------------------------------------------- 1 | This folder contains testcases for the project 2 | 3 | test scripts for s3: 4 | 5 | `test.sh` 6 | 7 | ```bash 8 | for r in {0..10}; do 9 | file=data/${RANDOM} 10 | start=`date +'%s.%N'` 11 | ./filesys_test cat s3://dmlc/ilsvrc12/val.rec >$file 12 | # ./filesys_test cat s3://dmlc/cifar10/train.rec >$file 13 | end=`date +'%s.%N'` 14 | res=$(echo "$end - $start" | bc -l) 15 | md5=`md5sum $file` 16 | rm $file 17 | echo "job $1, rp $r, $md5, time $res" 18 | done 19 | echo "job $1 done" 20 | ``` 21 | 22 | `run.sh` 23 | 24 | ```bash 25 | mkdir -p data 26 | rm -f data/* 27 | for i in {0..9}; do 28 | bash test.sh $i & 29 | sleep 1 30 | done 31 | wait 32 | ``` 33 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/neural-style/README.md: -------------------------------------------------------------------------------- 1 | # neural-style 2 | 3 | An example of neural style transfer 4 | 5 | ## Usage 6 | 7 | use the `download.sh` script to get the params file and the input and output file 8 | 9 | Then use `lein run` 10 | 11 | The output images will be stored in the output directory. Please feel free to play with the params at the top of the file 12 | 13 | 14 | This example only works on 1 device (cpu) right now 15 | 16 | If you are running on AWS you will need to setup X11 for graphics 17 | `sudo apt install xauth x11-apps` 18 | 19 | then relogin in `ssh -X -i creds ubuntu@yourinstance` 20 | 21 | 22 | _Note: This example is not working all the way - it needs some debugging help_ 23 | 24 | 25 | -------------------------------------------------------------------------------- /docs/api/python/rtc/rtc.md: -------------------------------------------------------------------------------- 1 | # Run-Time Compilation API 2 | 3 | ```eval_rst 4 | .. currentmodule:: mxnet.rtc 5 | ``` 6 | 7 | ## Overview 8 | 9 | The RTC package contains tools for compiling and running CUDA code from python 10 | frontend. The compiled kernels can be used stand-alone or combined with 11 | `autograd.Function` or `operator.CustomOpProp` to support differentiation. 12 | 13 | ```eval_rst 14 | .. autosummary:: 15 | :nosignatures: 16 | 17 | mxnet.rtc 18 | ``` 19 | 20 | ## API Reference 21 | 22 | 23 | 24 | ```eval_rst 25 | .. automodule:: mxnet.rtc 26 | :members: 27 | ``` 28 | 29 | 30 | -------------------------------------------------------------------------------- /cpp-package/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | if(USE_CPP_PACKAGE) 2 | 3 | set(CPP_PACKAGE_OP_H_HEADER ${CMAKE_CURRENT_LIST_DIR}/include/mxnet-cpp/op.h) 4 | 5 | if(MSVC) 6 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") 7 | endif(MSVC) 8 | 9 | add_custom_target( 10 | cpp_package_op_h ALL 11 | BYPRODUCTS ${CPP_PACKAGE_OP_H_HEADER} 12 | MAIN_DEPENDENCY mxnet 13 | DEPENDS mxnet ${CMAKE_CURRENT_SOURCE_DIR}/scripts/OpWrapperGenerator.py 14 | COMMAND echo "Running: OpWrapperGenerator.py" 15 | COMMAND python OpWrapperGenerator.py $ 16 | WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts 17 | ) 18 | 19 | if(NOT DO_NOT_BUILD_EXAMPLES) 20 | add_subdirectory(example) 21 | endif() 22 | 23 | endif() 24 | -------------------------------------------------------------------------------- /docs/_static/selectlang.js: -------------------------------------------------------------------------------- 1 | function changeLanguage(langSelect, langSelectLabel, rootpath){ 2 | langSelect.change(function() { 3 | var lang = langSelect.val(); 4 | if(lang == 'zh'){ 5 | location.href = rootpath + 'zh/index.html'; 6 | } else { 7 | location.href = rootpath + 'index.html'; 8 | } 9 | }); 10 | } 11 | 12 | $(document).ready(function () { 13 | var langSelect = $("#lang-select"); 14 | var langSelectLabel = $("#lang-select-label > span"); 15 | currHref = location.href; 16 | 17 | if(/\/zh\//.test(currHref)){ 18 | langSelect.val("zh"); 19 | } else { 20 | langSelect.val("en"); 21 | } 22 | langSelectLabel.text($("option:selected").text()); 23 | 24 | changeLanguage(langSelect, langSelectLabel, getRootPath()); 25 | }) -------------------------------------------------------------------------------- /3rdparty/dmlc-core/src/io/filesys.cc: -------------------------------------------------------------------------------- 1 | // Copyright by Contributors 2 | #include 3 | 4 | #include "./filesys.h" 5 | 6 | namespace dmlc { 7 | namespace io { 8 | 9 | void FileSystem::ListDirectoryRecursive(const URI &path, 10 | std::vector *out_list) { 11 | std::queue queue; 12 | queue.push(path); 13 | while (!queue.empty()) { 14 | std::vector dfiles; 15 | ListDirectory(queue.front(), &dfiles); 16 | queue.pop(); 17 | for (auto dfile : dfiles) { 18 | if (dfile.type == kDirectory) { 19 | queue.push(dfile.path); 20 | } else { 21 | out_list->push_back(dfile); 22 | } 23 | } 24 | } 25 | } 26 | 27 | } // namespace io 28 | } // namespace dmlc 29 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_kv_app.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.test_kv_app 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/api/julia/index.md: -------------------------------------------------------------------------------- 1 | # MXNet - Julia API 2 | 3 | See the [MXNet Julia Reference Manual](https://media.readthedocs.org/pdf/mxnet-test/latest/mxnet-test.pdf). 4 | 5 | MXNet supports the Julia programming language. The MXNet Julia package brings flexible and efficient GPU 6 | computing and the state-of-art deep learning to Julia. 7 | 8 | - It enables you to write seamless tensor/matrix computation with multiple GPUs in Julia. 9 | - It also enables you to construct and customize the state-of-art deep learning models in Julia, 10 | and apply them to tasks such as image classification and data science challenges. 11 | 12 | 13 |   14 | 15 | ## Julia API Reference 16 | Julia documents are available at [http://dmlc.ml/MXNet.jl/latest/](http://dmlc.ml/MXNet.jl/latest/). 17 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_connection.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.test_connection 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_simple_app.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.test_simple_app 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/split_test.cc: -------------------------------------------------------------------------------- 1 | // test reading speed from a InputSplit 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | int main(int argc, char *argv[]) { 9 | if (argc < 5) { 10 | printf("Usage: partid npart\n"); 11 | return 0; 12 | } 13 | using namespace dmlc; 14 | InputSplit *split = InputSplit::Create(argv[1], 15 | atoi(argv[2]), 16 | atoi(argv[3]), 17 | "text"); 18 | InputSplit::Blob blb; 19 | while (split->NextChunk(&blb)) { 20 | std::cout << std::string((char*)blb.dptr, blb.size); 21 | } 22 | delete split; 23 | return 0; 24 | } 25 | 26 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/imclassification/README.md: -------------------------------------------------------------------------------- 1 | # imclassification 2 | 3 | This shows off how to do image classification with the module api 4 | 5 | There is an example of the high level training api fit and also how to use multiple cpus/gpus 6 | 7 | To see more examples of how to use different parts of the module api look at the module example 8 | 9 | To run the example you must do 10 | 11 | * `lein install` in the root of the main project directory 12 | * cd into this project directory and do `lein run`. This will execute the cpu version. 13 | 14 | You can control the devices you run on by doing: 15 | 16 | `lein run :cpu 2` - This will run on 2 cpu devices 17 | `lein run :gpu 1` - This will run on 1 gpu device 18 | `lein run :gpu 2` - This will run on 2 gpu devices 19 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/local_multi_workers.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # set -x 3 | if [ $# -lt 3 ]; then 4 | echo "usage: $0 num_servers num_workers bin [args..]" 5 | exit -1; 6 | fi 7 | 8 | export DMLC_NUM_SERVER=$1 9 | shift 10 | export DMLC_NUM_WORKER=$1 11 | shift 12 | bin=$1 13 | shift 14 | arg="$@" 15 | 16 | # start the scheduler 17 | export DMLC_PS_ROOT_URI='127.0.0.1' 18 | export DMLC_PS_ROOT_PORT=8000 19 | export DMLC_ROLE='scheduler' 20 | ${bin} ${arg} scheduler& 21 | 22 | 23 | # start servers 24 | export DMLC_ROLE='server' 25 | for ((i=0; i<${DMLC_NUM_SERVER}; ++i)); do 26 | export HEAPPROFILE=./S${i} 27 | ${bin} ${arg} server& 28 | done 29 | 30 | # start workers 31 | export DMLC_ROLE='worker' 32 | export HEAPPROFILE=./W${i} 33 | ${bin} ${arg} worker& 34 | 35 | wait 36 | -------------------------------------------------------------------------------- /python/README.md: -------------------------------------------------------------------------------- 1 | MXNet Python Package 2 | ==================== 3 | This directory and nested files contain MXNet Python package and language binding. 4 | 5 | ## Installation 6 | To install MXNet Python package, visit MXNet [Install Instruction](http://mxnet.incubator.apache.org/install/index.html) 7 | 8 | 9 | ## Running the unit tests 10 | 11 | For running unit tests, you will need the [nose PyPi package](https://pypi.python.org/pypi/nose). To install: 12 | ```bash 13 | pip install --upgrade nose 14 | ``` 15 | 16 | Once ```nose``` is installed, run the following from MXNet root directory (please make sure the installation path of ```nosetests``` is included in your ```$PATH``` environment variable): 17 | ``` 18 | nosetests tests/python/unittest 19 | nosetests tests/python/train 20 | 21 | ``` 22 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_kv_app_multi_workers.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.test_kv_app_multi_workers 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/module/README.md: -------------------------------------------------------------------------------- 1 | ## Instructions 2 | 3 | This shows off how to use the module api. 4 | 5 | There are examples of: 6 | - high level api of training and prediction 7 | - intermediate level api with save and loading from checkpoints 8 | - examples of how to iteratate through the batch and calculate accuracy and predict manually. 9 | 10 | To run the example you must do 11 | 12 | * `lein install` in the root of the main project directory 13 | * cd into this project directory and do `lein run`. This will execute the cpu version. 14 | 15 | You can control the devices you run on by doing: 16 | 17 | `lein run :cpu 2` - This will run on 2 cpu devices 18 | `lein run :gpu 1` - This will run on 1 gpu device 19 | `lein run :gpu 2` - This will run on 2 gpu devices 20 | 21 | 22 | -------------------------------------------------------------------------------- /julia/README-DEV.md: -------------------------------------------------------------------------------- 1 | # Workflow for making a release 2 | 3 | 1. Update `NEWS.md` to list important changes 4 | 2. Check out the `stable` branch, merge with `master`. 5 | 3. Update `libmxnet_curr_ver` in `deps/build.jl` to the latest commit SHA (or any proper reference). Using `master` here is not good because future changes in libmxnet might break existing Julia packages. 6 | 4. Run tests. 7 | 5. Merge master into stable branch. 8 | 6. Tag stable branch: `git tag v1.2.3` 9 | 7. Push tag to remote: `git push origin ` 10 | 8. Edit the [releases page](https://github.com/dmlc/MXNet.jl/releases) 11 | to copy the release notes from `NEWS.md` to the newly created release tag. 12 | 9. Goto https://github.com/JuliaLang/METADATA.jl/pulls 13 | and check `attobot` already make a PR for the release. 14 | -------------------------------------------------------------------------------- /example/neural-style/end_to_end/README.md: -------------------------------------------------------------------------------- 1 | # End to End Neural Art 2 | 3 | Please refer to this [blog](http://dmlc.ml/mxnet/2016/06/20/end-to-end-neural-style.html) for details of how it is implemented. 4 | 5 | ## How to use 6 | 7 | 8 | 1. First use `../download.sh` to download pre-trained model and sample inputs. 9 | 10 | 2. Prepare training dataset. Put image samples to `../data/` (one file for each image sample). The pretrained model here was trained by 26k images sampled from [MIT Place dataset](http://places.csail.mit.edu). 11 | 12 | 3. Use `boost_train.py` for training. 13 | 14 | ## Pretrained Model 15 | 16 | - Model: [https://github.com/dmlc/web-data/raw/master/mxnet/art/model.zip](https://github.com/dmlc/web-data/raw/master/mxnet/art/model.zip) 17 | - Inference script: `boost_inference.py` 18 | -------------------------------------------------------------------------------- /perl-package/AI-NNVMCAPI/Changes: -------------------------------------------------------------------------------- 1 | Revision history for Perl extension AI::NNVMCAPI. 2 | 3 | 1.3 Tue Jun 26 20:57:40 PDT 2018 4 | - Major update, Gluon interface updated to parity with Python's API 5 | 6 | 1.2 Sun Mar 4 16:29:19 PST 2018 7 | - Support for sparse tensors 8 | 9 | 1.1 Sun Sep 24 10:26:54 PDT 2017 10 | - support for perl 5.14 11 | 12 | 1.01 Sat Jun 10 23:57:27 PDT 2017 13 | - sync with python. 14 | 15 | 0.95 Sun Mar 26 17:42:02 PDT 2017 16 | - visible on http://mxnet.io 17 | 18 | 0.03 Sat Feb 25 13:21:07 PST 2017 19 | - sync up with the Python interface. 20 | 21 | 0.02 Tue Feb 14 07:28:11 PST 2017 22 | - prepared for inclusion to the mxnet code repository. 23 | 24 | 0.01 Fri Jan 6 19:40:53 2017 25 | - original version 26 | 27 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/META.yml: -------------------------------------------------------------------------------- 1 | --- 2 | abstract: 'Perl interface to MXNet machine learning library' 3 | author: 4 | - 'Sergey Kolychev ' 5 | build_requires: {} 6 | configure_requires: 7 | ExtUtils::MakeMaker: '6.30' 8 | dynamic_config: 0 9 | generated_by: 'ExtUtils::MakeMaker version 7.24, CPAN::Meta::Converter version 2.143240' 10 | license: apache 11 | meta-spec: 12 | url: http://module-build.sourceforge.net/META-spec-v1.4.html 13 | version: '1.4' 14 | name: AI-MXNet 15 | no_index: 16 | directory: 17 | - t 18 | - inc 19 | requires: 20 | AI::MXNetCAPI: '1.33' 21 | AI::NNVMCAPI: '1.3' 22 | Function::Parameters: '1.0705' 23 | Hash::Ordered: '0.012' 24 | GraphViz: '2.14' 25 | Mouse: v2.1.0 26 | PDL: '2.007' 27 | PDL::CCS: '1.23.4' 28 | version: '1.33' 29 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/local.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # set -x 3 | if [ $# -lt 3 ]; then 4 | echo "usage: $0 num_servers num_workers bin [args..]" 5 | exit -1; 6 | fi 7 | 8 | export DMLC_NUM_SERVER=$1 9 | shift 10 | export DMLC_NUM_WORKER=$1 11 | shift 12 | bin=$1 13 | shift 14 | arg="$@" 15 | 16 | # start the scheduler 17 | export DMLC_PS_ROOT_URI='127.0.0.1' 18 | export DMLC_PS_ROOT_PORT=8000 19 | export DMLC_ROLE='scheduler' 20 | ${bin} ${arg} & 21 | 22 | 23 | # start servers 24 | export DMLC_ROLE='server' 25 | for ((i=0; i<${DMLC_NUM_SERVER}; ++i)); do 26 | export HEAPPROFILE=./S${i} 27 | ${bin} ${arg} & 28 | done 29 | 30 | # start workers 31 | export DMLC_ROLE='worker' 32 | for ((i=0; i<${DMLC_NUM_WORKER}; ++i)); do 33 | export HEAPPROFILE=./W${i} 34 | ${bin} ${arg} & 35 | done 36 | 37 | wait 38 | -------------------------------------------------------------------------------- /example/named_entity_recognition/README.md: -------------------------------------------------------------------------------- 1 | ## Goal 2 | 3 | - This repo contains an MXNet implementation of this state of the art [entity recognition model](https://www.aclweb.org/anthology/Q16-1026). 4 | - You can find my blog post on the model [here](https://opringle.github.io/2018/02/06/CNNLSTM_entity_recognition.html). 5 | 6 | ![](https://github.com/dmlc/web-data/blob/master/mxnet/example/ner/arch1.png?raw=true) 7 | 8 | ## Running the code 9 | 10 | To reproduce the preprocessed training data: 11 | 12 | 1. Download and unzip the data: https://www.kaggle.com/abhinavwalia95/entity-annotated-corpus/downloads/ner_dataset.csv 13 | 2. Move ner_dataset.csv into `./data` 14 | 3. create `./preprocessed_data` directory 15 | 3. `$ cd src && python preprocess.py` 16 | 17 | To train the model: 18 | 19 | - `$ cd src && python ner.py` -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/test_simple_app.cc: -------------------------------------------------------------------------------- 1 | #include "ps/ps.h" 2 | using namespace ps; 3 | 4 | int num = 0; 5 | 6 | void ReqHandle(const SimpleData& req, SimpleApp* app) { 7 | CHECK_EQ(req.head, 1); 8 | CHECK_EQ(req.body, "test"); 9 | app->Response(req); 10 | ++ num; 11 | } 12 | 13 | int main(int argc, char *argv[]) { 14 | int n = 100; 15 | Start(0); 16 | SimpleApp app(0, 0); 17 | app.set_request_handle(ReqHandle); 18 | 19 | if (IsScheduler()) { 20 | std::vector ts; 21 | for (int i = 0; i < n; ++i) { 22 | int recver = kScheduler + kServerGroup + kWorkerGroup; 23 | ts.push_back(app.Request(1, "test", recver)); 24 | } 25 | 26 | for (int t : ts) { 27 | app.Wait(t); 28 | } 29 | } 30 | 31 | Finalize(0, true); 32 | 33 | CHECK_EQ(num, n); 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /example/bayesian-methods/README.md: -------------------------------------------------------------------------------- 1 | Bayesian Methods 2 | ================ 3 | 4 | This folder contains examples related to Bayesian Methods. 5 | 6 | We currently have *Stochastic Gradient Langevin Dynamics (SGLD)* [(Welling and Teh, 2011)](http://www.icml-2011.org/papers/398_icmlpaper.pdf) 7 | and *Bayesian Dark Knowledge (BDK)* [(Balan, Rathod, Murphy and Welling, 2015)](http://papers.nips.cc/paper/5965-bayesian-dark-knowledge). 8 | 9 | **sgld.ipynb** shows how to use MXNet to repeat the toy experiment in the original SGLD paper. 10 | 11 | **bdk.ipynb** shows how to use MXNet to implement the DistilledSGLD algorithm in Bayesian Dark Knowledge. 12 | 13 | **bdk_demo.py** contains scripts (more than the notebook) related to Bayesian Dark Knowledge. Use `python bdk_demo.py -d 1 -l 2 -t 50000` to run classification on MNIST. 14 | -------------------------------------------------------------------------------- /example/multi-task/README.md: -------------------------------------------------------------------------------- 1 | # Mulit-task learning example 2 | 3 | This is a simple example to show how to use mxnet for multi-task learning. It uses MNIST as an example and mocks up the multi-label task. 4 | 5 | ## Usage 6 | First, you need to write a multi-task iterator on your own. The iterator needs to generate multiple labels according to your applications, and the label names should be specified in the `provide_label` function, which needs to be consist with the names of output layers. 7 | 8 | Then, if you want to show metrics of different tasks separately, you need to write your own metric class and specify the `num` parameter. In the `update` function of metric, calculate the metrics separately for different tasks. 9 | 10 | The example script uses gpu as device by default, if gpu is not available for your environment, you can change `device` to be `mx.cpu()`. 11 | -------------------------------------------------------------------------------- /tools/coreml/converter/__init__.py: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /example/cnn_visualization/README.md: -------------------------------------------------------------------------------- 1 | # Visualzing CNN decisions 2 | 3 | This folder contains an MXNet Gluon implementation of [Grad-CAM](https://arxiv.org/abs/1610.02391) that helps visualize CNN decisions. 4 | 5 | A tutorial on how to use this from Jupyter notebook is available [here](https://mxnet.incubator.apache.org/tutorials/vision/cnn_visualization.html). 6 | 7 | You can also do the visualization from terminal: 8 | ``` 9 | $ python gradcam_demo.py hummingbird.jpg 10 | Predicted category : hummingbird (94) 11 | Original Image : hummingbird_orig.jpg 12 | Grad-CAM : hummingbird_gradcam.jpg 13 | Guided Grad-CAM : hummingbird_guided_gradcam.jpg 14 | Saliency Map : hummingbird_saliency.jpg 15 | ``` 16 | 17 | ![Output of gradcam_demo.py](https://raw.githubusercontent.com/dmlc/web-data/master/mxnet/example/cnn_visualization/hummingbird_filenames.png) 18 | -------------------------------------------------------------------------------- /example/neural-style/README.md: -------------------------------------------------------------------------------- 1 | # Neural art 2 | 3 | This is an implementation of the paper 4 | [A Neural Algorithm of Artistic Style](http://arxiv.org/abs/1508.06576) by Leon 5 | A. Gatys, Alexander S. Ecker, and Matthias Bethge. 6 | 7 | ## How to use 8 | 9 | First use `download.sh` to download pre-trained model and sample inputs 10 | 11 | Then run `python nstyle.py`, use `-h` to see more options 12 | 13 | ## Sample results 14 | 15 | 16 | 17 | It takes 30 secs for a Titan X to generate the above 600x400 image. 18 | 19 | ## Note 20 | 21 | * The current implementation is based the 22 | [torch implementation](https://github.com/jcjohnson/neural-style). But we may 23 | change it dramatically in the near future. 24 | 25 | * We will release multi-GPU version soon. 26 | -------------------------------------------------------------------------------- /example/rnn/old/README.md: -------------------------------------------------------------------------------- 1 | RNN Example 2 | =========== 3 | This folder contains RNN examples using low level symbol interface. 4 | 5 | ## Data 6 | Run `get_sherlockholmes_data.sh` to download Sherlock Holmes data. 7 | 8 | ## Python 9 | 10 | - [lstm.py](lstm.py) Functions for building a LSTM Network 11 | - [gru.py](gru.py) Functions for building a GRU Network 12 | - [lstm_bucketing.py](lstm_bucketing.py) Sherlock Holmes language model by using LSTM 13 | - [gru_bucketing.py](gru_bucketing.py) Sherlock Holmes language model by using GRU 14 | - [char-rnn.ipynb](char-rnn.ipynb) Notebook to demo how to train a character LSTM by using ```lstm.py``` 15 | 16 | 17 | Performance Note: 18 | More ```MXNET_GPU_WORKER_NTHREADS``` may lead to better performance. For setting ```MXNET_GPU_WORKER_NTHREADS```, please refer to [Environment Variables](https://mxnet.readthedocs.org/en/latest/faq/env_var.html). 19 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/tests/travis/travis_script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # main script of travis 3 | 4 | if [ ${TASK} == "lint" ]; then 5 | make lint || exit -1 6 | fi 7 | 8 | if [ ${TASK} == "build" ]; then 9 | make DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || exit -1 10 | fi 11 | 12 | if [ ${TASK} == "test" ]; then 13 | make test DEPS_PATH=${CACHE_PREFIX} CXX=${CXX} || exit -1 14 | cd tests 15 | # single-worker tests 16 | tests=( test_connection test_kv_app test_simple_app ) 17 | for test in "${tests[@]}" 18 | do 19 | find $test -type f -executable -exec ./repeat.sh 4 ./local.sh 2 2 ./{} \; 20 | done 21 | # multi-workers test 22 | multi_workers_tests=( test_kv_app_multi_workers ) 23 | for test in "${multi_workers_tests[@]}" 24 | do 25 | find $test -type f -executable -exec ./repeat.sh 4 ./local_multi_workers.sh 2 2 ./{} \; 26 | done 27 | fi 28 | -------------------------------------------------------------------------------- /docs/api/python/gluon/loss.md: -------------------------------------------------------------------------------- 1 | # Gluon Loss API 2 | 3 | ## Overview 4 | 5 | This document lists the loss API in Gluon: 6 | 7 | ```eval_rst 8 | .. currentmodule:: mxnet.gluon.loss 9 | ``` 10 | 11 | This package includes several commonly used loss functions in neural networks. 12 | 13 | ```eval_rst 14 | .. autosummary:: 15 | :nosignatures: 16 | 17 | L2Loss 18 | L1Loss 19 | SigmoidBinaryCrossEntropyLoss 20 | SoftmaxCrossEntropyLoss 21 | KLDivLoss 22 | HuberLoss 23 | HingeLoss 24 | SquaredHingeLoss 25 | LogisticLoss 26 | TripletLoss 27 | CTCLoss 28 | PoissonNLLLoss 29 | ``` 30 | 31 | 32 | ## API Reference 33 | 34 | 35 | 36 | ```eval_rst 37 | .. automodule:: mxnet.gluon.loss 38 | :members: 39 | ``` 40 | 41 | 42 | -------------------------------------------------------------------------------- /python/mxnet/_ctypes/__init__.py: -------------------------------------------------------------------------------- 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 | "ctypes module" 19 | -------------------------------------------------------------------------------- /contrib/clojure-package/testing.md: -------------------------------------------------------------------------------- 1 | ## Help with Testing 2 | 3 | If you want to give the repo a spin and help make it stable and ready for prime time that would be awesome. 4 | 5 | Here is what you can do. 6 | 7 | * Clone the project 8 | * Edit the project.clj file and uncomment the line that is for your system (OSX, Linux CPU, or Linux GPU) 9 | * Run `lein deps` (this might take a bit - the jars are big!) 10 | * Run `lein test` - there should be no errors. The tests are all cpu 11 | * Run `lein install` to install the clojure-package locally 12 | * Go to the module examples `cd examples/module` 13 | * Either run `lein run` or `lein run :gpu` 14 | 15 | If you find any problems, please log on issue. 16 | 17 | Thanks! 18 | 19 | ## Want to explore more? 20 | 21 | The examples/tutorial is a good REPL walkthrough 22 | The examples/pre-trained-modules is nice too 23 | The examples/gan is just plain fun :) 24 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "3rdparty/mshadow"] 2 | path = 3rdparty/mshadow 3 | url = https://github.com/dmlc/mshadow.git 4 | [submodule "3rdparty/dlpack"] 5 | path = 3rdparty/dlpack 6 | url = https://github.com/dmlc/dlpack 7 | [submodule "3rdparty/openmp"] 8 | path = 3rdparty/openmp 9 | url = https://github.com/llvm-mirror/openmp 10 | [submodule "3rdparty/googletest"] 11 | path = 3rdparty/googletest 12 | url = https://github.com/google/googletest.git 13 | [submodule "3rdparty/mkldnn"] 14 | path = 3rdparty/mkldnn 15 | url = https://github.com/intel/mkl-dnn.git 16 | branch = master 17 | [submodule "3rdparty/cub"] 18 | path = 3rdparty/cub 19 | url = https://github.com/dmlc/cub 20 | [submodule "3rdparty/tvm"] 21 | path = 3rdparty/tvm 22 | url = https://github.com/dmlc/tvm 23 | [submodule "3rdparty/onnx-tensorrt"] 24 | path = 3rdparty/onnx-tensorrt 25 | url = https://github.com/onnx/onnx-tensorrt.git 26 | -------------------------------------------------------------------------------- /example/ssd/dataset/pycocotools/__init__.py: -------------------------------------------------------------------------------- 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 | __author__ = 'tylin' 19 | -------------------------------------------------------------------------------- /scala-package/assembly/src/javadoc.xml: -------------------------------------------------------------------------------- 1 | 2 | bundle 3 | 4 | jar 5 | 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | org.apache.mxnet:mxnet-core_${scala.binary.version} 14 | 15 | true 16 | 17 | false 18 | javadoc 19 | / 20 | true 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/cmake/lint.cmake: -------------------------------------------------------------------------------- 1 | get_filename_component(CMAKE_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE) 2 | if(NOT MSVC) 3 | set(LINT_COMMAND ${CMAKE_SOURCE_DIR}/scripts/lint.py) 4 | else() 5 | if((NOT PYTHON_EXECUTABLE)) 6 | message(FATAL_ERROR "Cannot lint without python") 7 | endif() 8 | # format output so VS can bring us to the offending file/line 9 | set(LINT_COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/scripts/lint.py) 10 | endif() 11 | 12 | cmake_policy(SET CMP0009 NEW) # suppress cmake warning 13 | string(REPLACE " " ";" LINT_DIRS ${LINT_DIRS}) 14 | string(REPLACE " " ";" EXCLUDE_PATH ${EXCLUDE_PATH}) 15 | execute_process( 16 | COMMAND ${LINT_COMMAND} ${PROJECT_NAME} all ${LINT_DIRS} --exclude_path=${EXCLUDE_PATH} 17 | WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} 18 | ERROR_VARIABLE LINT_OUTPUT 19 | ERROR_STRIP_TRAILING_WHITESPACE 20 | ) 21 | message(STATUS ${LINT_OUTPUT}) -------------------------------------------------------------------------------- /docs/_static/js/search.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function () { 2 | var searchForm = $("#search-input-wrap").children("form").first(); 3 | searchForm.append('
'); 4 | searchForm.children("div").first().addClass("searchBox"); 5 | $(".searchBox").addClass("searchBoxNorm"); 6 | 7 | $('#searchIcon').click(function () { 8 | if($('#search-input-wrap').is(':hidden')) { 9 | $('#search-input-wrap').show(); 10 | $('#searchIcon span').removeClass('glyphicon-search'); 11 | $('#searchIcon span').addClass('glyphicon-remove-circle'); 12 | } 13 | else { 14 | $('#search-input-wrap').hide(); 15 | $('#searchIcon span').removeClass('glyphicon-remove-circle'); 16 | $('#searchIcon span').addClass('glyphicon-search'); 17 | } 18 | }); 19 | }); -------------------------------------------------------------------------------- /julia/docs/Makefile: -------------------------------------------------------------------------------- 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 | all: 19 | julia --color=yes ./make.jl 20 | mkdocs build 21 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/add.st: -------------------------------------------------------------------------------- 1 | 19 | = + 20 | -------------------------------------------------------------------------------- /python/mxnet/_cy2/__init__.py: -------------------------------------------------------------------------------- 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 | """Namespace for cython generated modules for python2""" 19 | -------------------------------------------------------------------------------- /python/mxnet/_cy3/__init__.py: -------------------------------------------------------------------------------- 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 | """Namespace for cython generated modules for python3""" 19 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/mul.st: -------------------------------------------------------------------------------- 1 | 19 | = * () 20 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/scripts/packages.mk: -------------------------------------------------------------------------------- 1 | # Makfile for easily install dependencies 2 | 3 | # List of packages here 4 | .PHONY: gtest lz4 5 | 6 | # rules for gtest 7 | ${CACHE_PREFIX}/include/gtest: 8 | rm -rf gtest release-1.7.0.zip 9 | wget https://github.com/google/googletest/archive/release-1.7.0.zip 10 | unzip release-1.7.0.zip 11 | mv googletest-release-1.7.0 gtest 12 | cd gtest; g++ -I. -Iinclude -pthread -c src/gtest-all.cc -o gtest-all.o; cd .. 13 | ar -rv libgtest.a gtest/gtest-all.o 14 | mkdir -p ${CACHE_PREFIX}/include ${CACHE_PREFIX}/lib 15 | cp -r gtest/include/gtest ${CACHE_PREFIX}/include 16 | mv libgtest.a ${CACHE_PREFIX}/lib 17 | rm -rf release-1.7.0.zip 18 | 19 | gtest: | ${CACHE_PREFIX}/include/gtest 20 | 21 | lz4: ${CACHE_PREFIX}/include/lz4.h 22 | 23 | ${CACHE_PREFIX}/include/lz4.h: 24 | rm -rf lz4 25 | git clone https://github.com/Cyan4973/lz4 26 | cd lz4; make; make install PREFIX=${CACHE_PREFIX}; cd - 27 | -------------------------------------------------------------------------------- /cpp-package/include/mxnet-cpp/CPPLINT.cfg: -------------------------------------------------------------------------------- 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 | filter=-runtime/references 19 | exclude_files=op.h 20 | -------------------------------------------------------------------------------- /tools/coreml/pip_package/MANIFEST.in: -------------------------------------------------------------------------------- 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 | # Documentation for pypi webpage 19 | include README.rst 20 | -------------------------------------------------------------------------------- /tools/caffe_translator/settings.gradle: -------------------------------------------------------------------------------- 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 | rootProject.name = 'caffetranslator' 19 | 20 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/maxium.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.maximum(, ) 20 | -------------------------------------------------------------------------------- /3rdparty/dmlc-core/test/dataiter_test.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main(int argc, char *argv[]) { 5 | if (argc < 4) { 6 | printf("Usage: filename partid npart [format]\n"); 7 | return 0; 8 | } 9 | char libsvm[10] = "libsvm"; 10 | char* format; 11 | if (argc > 4) { 12 | format = argv[4]; 13 | } else { 14 | format = libsvm; 15 | } 16 | 17 | using namespace dmlc; 18 | RowBlockIter *iter = 19 | RowBlockIter::Create( 20 | argv[1], atoi(argv[2]), atoi(argv[3]), format); 21 | double tstart = GetTime(); 22 | size_t bytes_read = 0; 23 | while (iter->Next()) { 24 | const RowBlock &batch = iter->Value(); 25 | bytes_read += batch.MemCostBytes(); 26 | double tdiff = GetTime() - tstart; 27 | LOG(INFO) << (bytes_read >> 20UL) << 28 | " MB read " << ((bytes_read >> 20UL) / tdiff)<< " MB/sec"; 29 | } 30 | return 0; 31 | } 32 | -------------------------------------------------------------------------------- /docs/_static/js/auto_module_index.js: -------------------------------------------------------------------------------- 1 | function auto_index(module) { 2 | $(document).ready(function () { 3 | // find all classes or functions 4 | var div_query = "div[class='section'][id='" + module + "']"; 5 | var class_query = div_query + " dl[class='class'] > dt"; 6 | var func_query = div_query + " dl[class='function'] > dt"; 7 | var targets = $(class_query + ',' + func_query); 8 | 9 | var li_node = $("div.sphinxsidebarwrapper li a[href='#" + module + "']").parent(); 10 | var html = "
    "; 11 | 12 | for (var i = 0; i < targets.length; ++i) { 13 | var id = $(targets[i]).attr('id'); 14 | // remove 'mxnet.' prefix to make menus shorter 15 | var id_simple = id.replace(/^mxnet\./, ''); 16 | html += "
  • " + id_simple + "
  • "; 19 | } 20 | 21 | html += "
"; 22 | li_node.append(html); 23 | }); 24 | } -------------------------------------------------------------------------------- /example/reinforcement-learning/ddpg/README.md: -------------------------------------------------------------------------------- 1 | # mx-DDPG 2 | MXNet Implementation of DDPG 3 | 4 | # Introduction 5 | 6 | This is the MXNet implementation of [DDPG](https://arxiv.org/abs/1509.02971). It is tested in the rllab cart pole environment against rllab's native implementation and achieves comparably similar results. You can substitute with this anywhere you use rllab's DDPG with minor modifications. 7 | 8 | # Dependency 9 | 10 | * rllab 11 | 12 | # Usage 13 | 14 | To run the algorithm, 15 | 16 | ```python 17 | python run.py 18 | ``` 19 | 20 | The implementation relies on rllab for environments and logging and the hyperparameters could be set in ```run.py```. 21 | 22 | # References 23 | 24 | 1. [Lillicrap, Timothy P., et al. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971 (2015)](https://arxiv.org/abs/1509.02971). 25 | 2. rllab. URL: [https://github.com/openai/rllab](https://github.com/openai/rllab) 26 | -------------------------------------------------------------------------------- /example/sparse/factorization_machine/README.md: -------------------------------------------------------------------------------- 1 | Factorization Machine 2 | =========== 3 | This example trains a factorization machine model using the criteo dataset. 4 | 5 | ## Download the Dataset 6 | 7 | The criteo dataset is available at https://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/binary.html#criteo 8 | The data was used in a competition on click-through rate prediction jointly hosted by Criteo and Kaggle in 2014, 9 | with 1,000,000 features. There are 45,840,617 training examples and 6,042,135 testing examples. 10 | It takes more than 30 GB to download and extract the dataset. 11 | 12 | ## Train the Model 13 | 14 | - python train.py --data-train /path/to/criteo.kaggle2014.test.svm --data-test /path/to/criteo.kaggle2014.test.svm 15 | 16 | [Rendle, Steffen. "Factorization machines." In Data Mining (ICDM), 2010 IEEE 10th International Conference on, pp. 995-1000. IEEE, 2010. ](https://www.csie.ntu.edu.tw/~b97053/paper/Rendle2010FM.pdf) 17 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/group.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.Group([]); 20 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/power.st: -------------------------------------------------------------------------------- 1 | 19 | = ( + ( * )) ** 20 | -------------------------------------------------------------------------------- /tools/pip_package/MANIFEST.in: -------------------------------------------------------------------------------- 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 | include README 19 | recursive-include * *.py 20 | recursive-include * *.so 21 | -------------------------------------------------------------------------------- /docker/Dockerfiles/License.md: -------------------------------------------------------------------------------- 1 | ## Dockerfiles License 2 | 3 | ### All Dockerfiles in this directory are provided under an Apache 2.0 license. 4 | 5 | Licensed to the Apache Software Foundation (ASF) under one 6 | or more contributor license agreements. See the NOTICE file 7 | distributed with this work for additional information 8 | regarding copyright ownership. The ASF licenses this file 9 | to you under the Apache License, Version 2.0 (the 10 | "License"); you may not use this file except in compliance 11 | with the License. You may obtain a copy of the License at 12 | 13 | http://www.apache.org/licenses/LICENSE-2.0 14 | 15 | Unless required by applicable law or agreed to in writing, 16 | software distributed under the License is distributed on an 17 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18 | KIND, either express or implied. See the License for the 19 | specific language governing permissions and limitations 20 | under the License. -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/flatten.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.flatten(data=, name='') 20 | -------------------------------------------------------------------------------- /cpp-package/README.md: -------------------------------------------------------------------------------- 1 | # MXNet C++ Package 2 | 3 | To build the C++ package, please refer to [this guide](). 4 | 5 | A basic tutorial can be found at . 6 | 7 | The example directory contains examples for you to get started. 8 | 9 | ## Building C++ examples in examples folder 10 | 11 | From cpp-package/examples directory 12 | - Build all examples in release mode: **make all** 13 | - Build all examples in debug mode : **make debug** 14 | 15 | By default, the examples are build to be run on GPU. 16 | To build examples to run on CPU: 17 | - Release: **make all MXNET_USE_CPU=1** 18 | - Debug: **make debug MXNET_USE_CPU=1** 19 | 20 | 21 | The makefile will also download the necessary data files and store in data folder. (The download will take couple of minutes, but will be done only once on a fresh installation.) 22 | -------------------------------------------------------------------------------- /perl-package/README.md: -------------------------------------------------------------------------------- 1 | [Perl API](https://mxnet.incubator.apache.org/api/perl/index.html) 2 | [![GitHub license](http://dmlc.github.io/img/apache2.svg)](../LICENSE) 3 | 4 | You have found MXNet Perl Package! The MXNet Perl packages brings flexible and efficient GPU 5 | computing and state-of-art deep learning to Perl. 6 | 7 | - It enables you to write seamless tensor/matrix computation with multiple GPUs in Perl. 8 | - It also enables you to construct and customize state-of-art deep learning models in Perl, 9 | and apply them to tasks such as image classification and data science challenges. 10 | 11 | Installation 12 | --------- 13 | * [MXNet Setup Document](http://mxnet.incubator.apache.org/install/ubuntu_setup.html#install-the-mxnet-package-for-perl) 14 | - Check this out for detailed documents, examples and installation guides. 15 | 16 | License 17 | ------- 18 | This library is licensed under Apache 2.0 license https://www.apache.org/licenses/LICENSE-2.0 19 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/dropout.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.Dropout(data=, p=, name='') 20 | -------------------------------------------------------------------------------- /src/c_api/.clang-tidy: -------------------------------------------------------------------------------- 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 | # Disable most clang-tidy checks in the c_api folder. 19 | Checks: -*,readability-non-const-parameter 20 | -------------------------------------------------------------------------------- /example/nce-loss/get_text8.sh: -------------------------------------------------------------------------------- 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 | mkdir -p ./data/ 19 | cd ./data/ 20 | wget http://mattmahoney.net/dc/text8.zip 21 | unzip text8.zip 22 | -------------------------------------------------------------------------------- /python/mxnet/contrib/ndarray.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """NDArray namespace used to register contrib functions""" 20 | __all__ = [] 21 | -------------------------------------------------------------------------------- /python/mxnet/contrib/symbol.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """Symbol namespace used to register contrib functions""" 20 | __all__ = [] 21 | -------------------------------------------------------------------------------- /docs/architecture/index.md: -------------------------------------------------------------------------------- 1 | # MXNet Architecture 2 | 3 | Building a high-performance deep learning library 4 | requires many systems-level design decisions. 5 | In this design note, we share the rationale 6 | for the specific choices made when designing _MXNet_. 7 | We imagine that these insights may be useful 8 | to both deep learning practitioners 9 | and builders of other deep learning systems. 10 | 11 | ## Deep Learning System Design Concepts 12 | 13 | The following pages address general design concepts for deep learning systems. 14 | Mainly, they focus on the following 3 areas: 15 | abstraction, optimization, and trade-offs between efficiency and flexibility. 16 | Additionally, we provide an overview of the complete MXNet system. 17 | 18 | ```eval_rst 19 | .. toctree:: 20 | :maxdepth: 1 21 | 22 | overview.md 23 | program_model.md 24 | note_engine.md 25 | note_memory.md 26 | note_data_loading.md 27 | exception_handling.md 28 | rnn_interface.md 29 | ``` 30 | -------------------------------------------------------------------------------- /julia/models/Inception/get.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | 21 | wget -c http://data.dmlc.ml/mxnet/data/Inception.zip 22 | unzip Inception.zip 23 | -------------------------------------------------------------------------------- /julia/test/travis/run_coverage.sh: -------------------------------------------------------------------------------- 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 | julia -e 'cd(Pkg.dir("MXNet")); Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())' 19 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/t/AI-MXNet.t: -------------------------------------------------------------------------------- 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 | use strict; 19 | use warnings; 20 | use Test::More tests => 1; 21 | BEGIN { use_ok('AI::MXNet') }; 22 | -------------------------------------------------------------------------------- /tools/caffe_converter/make_win32.bat: -------------------------------------------------------------------------------- 1 | rem Licensed to the Apache Software Foundation (ASF) under one 2 | rem or more contributor license agreements. See the NOTICE file 3 | rem distributed with this work for additional information 4 | rem regarding copyright ownership. The ASF licenses this file 5 | rem to you under the Apache License, Version 2.0 (the 6 | rem "License"); you may not use this file except in compliance 7 | rem with the License. You may obtain a copy of the License at 8 | rem 9 | rem http://www.apache.org/licenses/LICENSE-2.0 10 | rem 11 | rem Unless required by applicable law or agreed to in writing, 12 | rem software distributed under the License is distributed on an 13 | rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | rem KIND, either express or implied. See the License for the 15 | rem specific language governing permissions and limitations 16 | rem under the License. 17 | 18 | @protoc --python_out=./ ./caffe.proto 19 | @echo done. 20 | @pause 21 | -------------------------------------------------------------------------------- /ci/docker/install/ubuntu_arm.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | set -ex 21 | 22 | apt update || true 23 | apt install -y \ 24 | unzip 25 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/activation.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.symbol.Activation(data=, act_type='', name='') 20 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/permute.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.transpose(data=, axes=(), name='') 20 | -------------------------------------------------------------------------------- /python/mxnet/gluon/contrib/data/_constants.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | 20 | """Read text files and load embeddings.""" 21 | 22 | EOS_TOKEN = '' 23 | -------------------------------------------------------------------------------- /tests/nightly/apache_rat_license_check/rat-excludes: -------------------------------------------------------------------------------- 1 | .*xml 2 | \..* 3 | .*css 4 | \\.* 5 | .*ipynb 6 | .*html 7 | .*json 8 | .*js 9 | .*txt 10 | .*md 11 | 3rdparty/* 12 | R-package/* 13 | src/operator/mkl/* 14 | trunk/* 15 | docker/* 16 | docker_multiarch/* 17 | .*\\.m 18 | .*\\.mk 19 | .*\\.R 20 | Dockerfile* 21 | .*svg 22 | .*cfg 23 | .*config 24 | docs/* 25 | __init__.py 26 | build/* 27 | .*\\.t 28 | MANIFEST 29 | Changes 30 | META.yml 31 | .*csv 32 | .*names 33 | CODEOWNERS 34 | prepare_mkl.sh 35 | readthedocs.yml 36 | snap.python 37 | snapcraft.yaml 38 | image-classification-predict.cc 39 | bbox.pyx 40 | cpu_nms.pyx 41 | gpu_nms.pyx 42 | nms_kernel.cu 43 | _mask.pyx 44 | unicodemap_en_baidu.csv 45 | coco.py 46 | base.pyi 47 | special_functions-inl.h 48 | im2col.cuh 49 | im2col.h 50 | pool.h 51 | README.rst 52 | dataset.cPickle 53 | rcnn/* 54 | image-classification/* 55 | rat-excludes 56 | apache-rat-tasks/* 57 | moderngpu/* 58 | deformable_im2col.cuh 59 | deformable_im2col.h 60 | REQUIRE 61 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/concat.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.concat(, dim=, name=''); 20 | -------------------------------------------------------------------------------- /perl-package/AI-MXNetCAPI/t/AI-MXNetCAPI.t: -------------------------------------------------------------------------------- 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 | use strict; 19 | use warnings; 20 | use Test::More tests => 1; 21 | BEGIN { use_ok('AI::MXNetCAPI') }; 22 | 23 | -------------------------------------------------------------------------------- /perl-package/AI-NNVMCAPI/t/AI-NNVMCAPI.t: -------------------------------------------------------------------------------- 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 | use strict; 19 | use warnings; 20 | use Test::More tests => 1; 21 | BEGIN { use_ok('AI::NNVMCAPI') }; 22 | 23 | -------------------------------------------------------------------------------- /cpp-package/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: cpp 4 | 5 | os: 6 | - linux 7 | # disable for now since clang doesn't support openmp 8 | # - osx 9 | 10 | env: 11 | # code analysis 12 | - TASK=lint 13 | # TODO: build example 14 | - TASK=build 15 | 16 | # dependent apt packages 17 | addons: 18 | apt: 19 | sources: 20 | - ubuntu-toolchain-r-test 21 | packages: 22 | - gcc-4.8 23 | - g++-4.8 24 | # - wget 25 | # - git 26 | # - libcurl4-openssl-dev 27 | # - unzip 28 | # - libatlas-dev 29 | # - libopencv-dev 30 | 31 | before_install: 32 | 33 | install: 34 | - source tests/travis/setup.sh 35 | 36 | script: 37 | - tests/travis/run_test.sh 38 | 39 | cache: 40 | directories: 41 | - ${HOME}/.cache/usr 42 | 43 | notifications: 44 | # Emails are sent to the committer's git-configured email address by default, 45 | email: 46 | on_success: change 47 | on_failure: always 48 | #slack: dmlc:NmroCzntCiWOuxUZpii40USd 49 | -------------------------------------------------------------------------------- /plugin/opencv/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | # pylint: disable=wildcard-import 20 | 21 | """Opencv plugin for mxnet""" 22 | from .opencv import * 23 | 24 | -------------------------------------------------------------------------------- /example/ssd/tools/caffe_converter/make_win32.bat: -------------------------------------------------------------------------------- 1 | rem Licensed to the Apache Software Foundation (ASF) under one 2 | rem or more contributor license agreements. See the NOTICE file 3 | rem distributed with this work for additional information 4 | rem regarding copyright ownership. The ASF licenses this file 5 | rem to you under the Apache License, Version 2.0 (the 6 | rem "License"); you may not use this file except in compliance 7 | rem with the License. You may obtain a copy of the License at 8 | rem 9 | rem http://www.apache.org/licenses/LICENSE-2.0 10 | rem 11 | rem Unless required by applicable law or agreed to in writing, 12 | rem software distributed under the License is distributed on an 13 | rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | rem KIND, either express or implied. See the License for the 15 | rem specific language governing permissions and limitations 16 | rem under the License. 17 | 18 | @protoc --python_out=./ ./caffe_parse/caffe.proto 19 | @echo done. 20 | @pause 21 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrn.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.sym.LRN(data=, alpha=, beta=, knorm=, nsize=, name=) 20 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrpolicy_exp.st: -------------------------------------------------------------------------------- 1 | 19 | lr = optimizer_params['learning_rate'] 20 | lr *= gamma 21 | optimizer_params['learning_rate'] = lr 22 | -------------------------------------------------------------------------------- /cpp-package/tests/travis/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | 21 | if [ ${TASK} == "lint" ]; then 22 | pip install cpplint 'pylint==1.4.4' 'astroid==1.3.6' --user 23 | fi 24 | -------------------------------------------------------------------------------- /example/rcnn/symnet/logger.py: -------------------------------------------------------------------------------- 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 | import logging 19 | 20 | # set up logger 21 | logging.basicConfig() 22 | logger = logging.getLogger() 23 | logger.setLevel(logging.INFO) 24 | -------------------------------------------------------------------------------- /python/mxnet/contrib/svrg_optimization/__init__.py: -------------------------------------------------------------------------------- 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 | """SVRGModule, SVRGOptimization import. 18 | """ 19 | 20 | 21 | from . import svrg_module 22 | from . import svrg_optimizer 23 | -------------------------------------------------------------------------------- /python/mxnet/gluon/model_zoo/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """Predefined and pretrained models.""" 20 | 21 | from . import model_store 22 | 23 | from . import vision 24 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/opt_vars.st: -------------------------------------------------------------------------------- 1 | 19 | 20 | base_lr = 21 | 22 | 23 | wd = 24 | -------------------------------------------------------------------------------- /contrib/clojure-package/ci-test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | set -evx 20 | 21 | MXNET_HOME=${PWD} 22 | cd ${MXNET_HOME}/contrib/clojure-package 23 | lein test 24 | lein cloverage --codecov 25 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-Contrib/t/AI-MXNet-Gluon-Contrib.t: -------------------------------------------------------------------------------- 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 | use strict; 19 | use warnings; 20 | use Test::More tests => 1; 21 | BEGIN { use_ok('AI::MXNet::Gluon::Contrib') }; 22 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet-Gluon-ModelZoo/t/AI-MXNet-Gluon-ModelZoo.t: -------------------------------------------------------------------------------- 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 | use strict; 19 | use warnings; 20 | use Test::More tests => 1; 21 | BEGIN { use_ok('AI::MXNet::Gluon::ModelZoo') }; 22 | -------------------------------------------------------------------------------- /python/mxnet/gluon/contrib/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """Contrib neural network module.""" 20 | 21 | from . import nn 22 | 23 | from . import rnn 24 | 25 | from . import data 26 | -------------------------------------------------------------------------------- /ci/docker_cache_requirements: -------------------------------------------------------------------------------- 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 | boto3==1.7.13 18 | botocore==1.10.13 19 | docutils==0.14 20 | jmespath==0.9.3 21 | joblib==0.11 22 | python-dateutil==2.7.2 23 | s3transfer==0.1.13 24 | six==1.11.0 25 | -------------------------------------------------------------------------------- /example/ssd/dataset/names/mscoco.names: -------------------------------------------------------------------------------- 1 | person 2 | bicycle 3 | car 4 | motorbike 5 | aeroplane 6 | bus 7 | train 8 | truck 9 | boat 10 | traffic light 11 | fire hydrant 12 | stop sign 13 | parking meter 14 | bench 15 | bird 16 | cat 17 | dog 18 | horse 19 | sheep 20 | cow 21 | elephant 22 | bear 23 | zebra 24 | giraffe 25 | backpack 26 | umbrella 27 | handbag 28 | tie 29 | suitcase 30 | frisbee 31 | skis 32 | snowboard 33 | sports ball 34 | kite 35 | baseball bat 36 | baseball glove 37 | skateboard 38 | surfboard 39 | tennis racket 40 | bottle 41 | wine glass 42 | cup 43 | fork 44 | knife 45 | spoon 46 | bowl 47 | banana 48 | apple 49 | sandwich 50 | orange 51 | broccoli 52 | carrot 53 | hot dog 54 | pizza 55 | donut 56 | cake 57 | chair 58 | sofa 59 | pottedplant 60 | bed 61 | diningtable 62 | toilet 63 | tvmonitor 64 | laptop 65 | mouse 66 | remote 67 | keyboard 68 | cell phone 69 | microwave 70 | oven 71 | toaster 72 | sink 73 | refrigerator 74 | book 75 | clock 76 | vase 77 | scissors 78 | teddy bear 79 | hair drier 80 | toothbrush 81 | -------------------------------------------------------------------------------- /python/mxnet/contrib/onnx/onnx2mx/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """ONNX Import module""" 20 | from . import import_model 21 | from . import import_onnx 22 | from . import import_to_gluon 23 | -------------------------------------------------------------------------------- /python/mxnet/gluon/contrib/data/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | # pylint: disable=wildcard-import 20 | """Contrib datasets.""" 21 | 22 | from . import text 23 | 24 | from .sampler import * 25 | -------------------------------------------------------------------------------- /scala-package/assembly/linux-x86_64-cpu/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | full 3 | 4 | jar 5 | 6 | false 7 | 8 | 9 | 10 | *:*:jar 11 | 12 | / 13 | true 14 | true 15 | runtime 16 | 17 | 18 | lib/native 19 | libmxnet-scala.so 20 | false 21 | false 22 | false 23 | 24 | org.apache.mxnet:libmxnet-scala-linux-x86_64-cpu:so 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scala-package/assembly/linux-x86_64-gpu/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | full 3 | 4 | jar 5 | 6 | false 7 | 8 | 9 | 10 | *:*:jar 11 | 12 | / 13 | true 14 | true 15 | runtime 16 | 17 | 18 | lib/native 19 | libmxnet-scala.so 20 | false 21 | false 22 | false 23 | 24 | org.apache.mxnet:libmxnet-scala-linux-x86_64-gpu:so 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/imports.st: -------------------------------------------------------------------------------- 1 | 19 | from __future__ import division 20 | import copy 21 | import logging 22 | import math 23 | import sys 24 | 25 | import mxnet as mx 26 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/include/ps/base.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015 by Contributors 3 | */ 4 | #ifndef PS_BASE_H_ 5 | #define PS_BASE_H_ 6 | #include 7 | #include "ps/internal/utils.h" 8 | namespace ps { 9 | 10 | #if USE_KEY32 11 | /*! \brief Use unsigned 32-bit int as the key type */ 12 | using Key = uint32_t; 13 | #else 14 | /*! \brief Use unsigned 64-bit int as the key type */ 15 | using Key = uint64_t; 16 | #endif 17 | /*! \brief The maximal allowed key value */ 18 | static const Key kMaxKey = std::numeric_limits::max(); 19 | /** \brief node ID for the scheduler */ 20 | static const int kScheduler = 1; 21 | /** 22 | * \brief the server node group ID 23 | * 24 | * group id can be combined: 25 | * - kServerGroup + kScheduler means all server nodes and the scheuduler 26 | * - kServerGroup + kWorkerGroup means all server and worker nodes 27 | */ 28 | static const int kServerGroup = 2; 29 | /** \brief the worker node group ID */ 30 | static const int kWorkerGroup = 4; 31 | 32 | } // namespace ps 33 | #endif // PS_BASE_H_ 34 | -------------------------------------------------------------------------------- /scala-package/assembly/osx-x86_64-cpu/src/main/assembly/assembly.xml: -------------------------------------------------------------------------------- 1 | 2 | full 3 | 4 | jar 5 | 6 | false 7 | 8 | 9 | 10 | *:*:jar 11 | 12 | / 13 | true 14 | true 15 | runtime 16 | 17 | 18 | lib/native 19 | libmxnet-scala.jnilib 20 | false 21 | false 22 | false 23 | 24 | org.apache.mxnet:libmxnet-scala-osx-x86_64-cpu:jnilib 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /scala-package/examples/src/main/scala/org/apache/mxnetexamples/customop/README.md: -------------------------------------------------------------------------------- 1 | # Custom Operator Example for Scala 2 | This is the example using Custom Operator for type-safe api of Scala. 3 | In the example, a `Softmax` operator is implemented to run the MNIST example. 4 | 5 | There is also an example using RTC. However, the rtc module is depreciated and no longer can be used. Please contribute to use CudaModule operator to replace the rtc. 6 | 7 | ## Setup 8 | ### Download the source File 9 | ```$xslt 10 | https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/mnist/mnist.zip 11 | ``` 12 | ### Unzip the file 13 | ```$xslt 14 | unzip mnist.zip 15 | ``` 16 | ### Arguement Configuration 17 | Then you need to define the arguments that you would like to pass in the model: 18 | ```$xslt 19 | --data-path 20 | ``` 21 | 22 | you can find more in [here](https://github.com/apache/incubator-mxnet/blob/scala-package/examples/src/main/scala/org/apache/mxnet/examples/customop/ExampleCustomOp.scala#L218-L221) -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/accuracy.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.metric.Accuracy(output_names=[''], label_names=[''], name='') 20 | test_metrics.add() 21 | -------------------------------------------------------------------------------- /python/mxnet/gluon/data/vision/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | # pylint: disable=wildcard-import 20 | """Vision utilities.""" 21 | 22 | from .datasets import * 23 | 24 | from . import transforms 25 | -------------------------------------------------------------------------------- /contrib/clojure-package/src/org/apache/clojure_mxnet/base.clj: -------------------------------------------------------------------------------- 1 | ;; 2 | ;; Licensed to the Apache Software Foundation (ASF) under one or more 3 | ;; contributor license agreements. See the NOTICE file distributed with 4 | ;; this work for additional information regarding copyright ownership. 5 | ;; The ASF licenses this file to You under the Apache License, Version 2.0 6 | ;; (the "License"); you may not use this file except in compliance with 7 | ;; 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, software 12 | ;; distributed under the License is distributed on an "AS IS" BASIS, 13 | ;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | ;; See the License for the specific language governing permissions and 15 | ;; limitations under the License. 16 | ;; 17 | 18 | (ns org.apache.clojure-mxnet.base 19 | (:import (org.apache.mxnet Base))) 20 | 21 | (def MX_REAL_TYPE (Base/MX_REAL_TYPE)) 22 | -------------------------------------------------------------------------------- /docs/community/mxnet_channels.md: -------------------------------------------------------------------------------- 1 | # Join MXNet Development Discussion 2 | 3 | Converse with the MXNet community via the following channels: 4 | 5 | - [Forum](https://discuss.mxnet.io/): [discuss.mxnet.io](https://discuss.mxnet.io/) 6 | - [MXNet Apache developer mailing list](https://lists.apache.org/list.html?dev@mxnet.apache.org) (dev@mxnet.apache.org): To subscribe, send an email to user-subscribe@mxnet.apache.org 7 | - [MXNet Apache user mailing list](https://lists.apache.org/list.html?user@mxnet.apache.org) (user@mxnet.apache.org): To subscribe, send an email to dev-subscribe@mxnet.apache.org 8 | - [MXNet Slack channel](https://the-asf.slack.com/) (Channel: #mxnet): To request an invitation to the channel please subscribe to the mailing list above and then email: dev@mxnet.apache.org 9 | 10 | Note: if you have an email address with apache.org, you do not need an approval to join the MXNet Slack channel. 11 | -------------------------------------------------------------------------------- /python/mxnet/gluon/rnn/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | # pylint: disable=wildcard-import 20 | """Recurrent neural network module.""" 21 | 22 | from .rnn_cell import * 23 | 24 | from .rnn_layer import * 25 | -------------------------------------------------------------------------------- /contrib/clojure-package/examples/rnn/get_data.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | set -evx 21 | 22 | mkdir data 23 | cd data 24 | wget http://data.mxnet.io/mxnet/data/char_lstm.zip 25 | unzip char_lstm.zip 26 | cd .. 27 | -------------------------------------------------------------------------------- /example/gluon/style_transfer/download_images.py: -------------------------------------------------------------------------------- 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 | import os 19 | if not os.path.exists('images'): 20 | os.system('svn checkout https://github.com/dmlc/web-data/trunk/mxnet/example/style_transfer/images') 21 | -------------------------------------------------------------------------------- /example/rnn/large_word_lm/Makefile: -------------------------------------------------------------------------------- 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 | all: clean 19 | python setup.py build_ext --inplace 20 | 21 | clean: 22 | rm -rf build 23 | rm -rf __pycache__ 24 | rm -rf log_uniform.cpp 25 | rm -rf log_uniform.*.so 26 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrpolicy_inv.st: -------------------------------------------------------------------------------- 1 | 19 | lr = optimizer_params['learning_rate'] 20 | lr = base_lr * math.pow((1 + gamma * batch_num), -power) 21 | optimizer_params['learning_rate'] = lr 22 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrpolicy_poly.st: -------------------------------------------------------------------------------- 1 | 19 | lr = optimizer_params['learning_rate'] 20 | lr = math.pow(base_lr * (1 - batch_num/max_iter), power) 21 | optimizer_params['learning_rate'] = lr 22 | -------------------------------------------------------------------------------- /python/mxnet/contrib/text/__init__.py: -------------------------------------------------------------------------------- 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 | # coding: utf-8 19 | """This module includes utilities for indexing and embedding text.""" 20 | 21 | from . import utils 22 | from . import vocab 23 | from . import embedding 24 | -------------------------------------------------------------------------------- /tests/python/train/common.py: -------------------------------------------------------------------------------- 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 | import sys, os 19 | curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__))) 20 | sys.path.append(os.path.join(curr_path, '../common/')) 21 | 22 | import models 23 | 24 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrpolicy_step.st: -------------------------------------------------------------------------------- 1 | 19 | if(batch_num % stepsize == 0): 20 | lr = optimizer_params['learning_rate'] 21 | lr *= gamma 22 | optimizer_params['learning_rate'] = lr 23 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/top_k_accuracy.st: -------------------------------------------------------------------------------- 1 | 19 | = mx.metric.TopKAccuracy(top_k=, output_names=[''], label_names=[''], name='') 20 | test_metrics.add() 21 | -------------------------------------------------------------------------------- /example/image-classification/predict-cpp/Makefile: -------------------------------------------------------------------------------- 1 | # Special thanks to https://github.com/pertusa for the Makefile 2 | CFLAGS=-std=c++11 -Wno-unknown-pragmas -Wall 3 | 4 | # Added for openblas 5 | # export OPENBLAS_ROOT=/usr/local/opt/openblas 6 | 7 | # CFLAGS+= -I${OPENBLAS_ROOT}/include 8 | # LDFLAGS=-L${OPENBLAS_ROOT}/lib -lopenblas 9 | 10 | # Added for opencv 11 | CFLAGS+= `pkg-config --cflags opencv` 12 | LDFLAGS+=`pkg-config --libs opencv` 13 | 14 | # Added for mxnet 15 | export MXNET_ROOT=`pwd`/../../.. 16 | 17 | CFLAGS+=-Wall -I$(MXNET_ROOT)/include 18 | LDFLAGS+=$(MXNET_ROOT)/lib/libmxnet.so -lpthread 19 | 20 | image-classification-predict: image-classification-predict.o 21 | g++ -O3 -o image-classification-predict image-classification-predict.o $(LDFLAGS) 22 | 23 | image-classification-predict.o: image-classification-predict.cc 24 | g++ -O3 -c image-classification-predict.cc ${CFLAGS} 25 | 26 | clean: 27 | rm image-classification-predict 28 | rm -f *.d *.o 29 | 30 | lint: 31 | python ../../../3rdparty/dmlc-core/scripts/lint.py mxnet "cpp" ./ 32 | -------------------------------------------------------------------------------- /3rdparty/ps-lite/.travis.yml: -------------------------------------------------------------------------------- 1 | # disable sudo to use container based build 2 | sudo: false 3 | 4 | # Use Build Matrix to do lint and build seperately 5 | env: 6 | matrix: 7 | - TASK=lint 8 | - TASK=test CXX=g++-4.8 9 | # - TASK=build CXX=g++-4.8 10 | # - TASK=build CXX=g++-5 11 | 12 | # dependent apt packages 13 | addons: 14 | apt: 15 | sources: 16 | - ubuntu-toolchain-r-test 17 | packages: 18 | - g++-4.8 19 | # - g++-5 20 | - wget 21 | - git 22 | # - unzip 23 | 24 | before_install: 25 | - export TRAVIS=tests/travis 26 | - source ${TRAVIS}/travis_setup_env.sh 27 | 28 | 29 | install: 30 | - pip install cpplint pylint --user `whoami` 31 | 32 | 33 | script: ${TRAVIS}/travis_script.sh 34 | 35 | 36 | before_cache: 37 | - ${TRAVIS}/travis_before_cache.sh 38 | 39 | cache: 40 | directories: 41 | - ${HOME}/.cache/usr 42 | 43 | 44 | notifications: 45 | # Emails are sent to the committer's git-configured email address by default, 46 | email: 47 | on_success: change 48 | on_failure: always 49 | -------------------------------------------------------------------------------- /ci/docker/install/ubuntu_gcc8.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | sudo add-apt-repository ppa:jonathonf/gcc-8.0 21 | sudo add-apt-repository ppa:jonathonf/gcc-7.3 22 | sudo apt-get update 23 | sudo apt-get install -y gcc-8 g++-8 24 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/lib/AI/MXNet/Image/Symbol.pm: -------------------------------------------------------------------------------- 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::Image::Symbol; 19 | use strict; 20 | use warnings; 21 | use parent 'AI::MXNet::AutoLoad'; 22 | sub config { ('image', 'AI::MXNet::Symbol') } 23 | 24 | 1; 25 | -------------------------------------------------------------------------------- /scala-package/mxnet-demo/bin/demo.sh: -------------------------------------------------------------------------------- 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 | #!/bin/bash 18 | CURR_DIR=$(cd $(dirname $0)/../; pwd) 19 | CLASSPATH=$CLASSPATH:$CURR_DIR/target/*:$CLASSPATH:$CURR_DIR/target/classes/lib/* 20 | java -Xmx8G -cp $CLASSPATH sample.HelloWorld 21 | -------------------------------------------------------------------------------- /tools/caffe_translator/src/main/resources/templates/lrpolicy_sigmoid.st: -------------------------------------------------------------------------------- 1 | 19 | lr = optimizer_params['learning_rate'] 20 | lr = base_lr * ( 1/(1 + math.exp(-gamma * (batch_num - stepsize)))) 21 | optimizer_params['learning_rate'] = lr 22 | -------------------------------------------------------------------------------- /docs/api/python/executor/executor.md: -------------------------------------------------------------------------------- 1 | # Executor and Executor Manager 2 | 3 | The executor and executor manager are internal classes for managing symbolic 4 | graph execution. This document is only intended for reference for advanced users. 5 | 6 | .. note:: Direct interactions with executor and executor manager are dangerous and not recommended. 7 | 8 | ## Executor 9 | 10 | ```eval_rst 11 | .. currentmodule:: mxnet.executor 12 | 13 | .. autosummary:: 14 | :nosignatures: 15 | 16 | Executor 17 | ``` 18 | 19 | ## Executor Manager 20 | 21 | ```eval_rst 22 | .. currentmodule:: mxnet.executor_manager 23 | 24 | .. autosummary:: 25 | :nosignatures: 26 | 27 | DataParallelExecutorGroup 28 | DataParallelExecutorManager 29 | ``` 30 | 31 | ## API Reference 32 | 33 | 34 | 35 | ```eval_rst 36 | .. automodule:: mxnet.executor 37 | :members: 38 | .. automodule:: mxnet.executor_manager 39 | :members: 40 | ``` 41 | 42 | 43 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/lib/AI/MXNet/Image/NDArray.pm: -------------------------------------------------------------------------------- 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::Image::NDArray; 19 | use strict; 20 | use warnings; 21 | use parent 'AI::MXNet::AutoLoad'; 22 | sub config { ('image', 'AI::MXNet::NDArray') } 23 | 24 | 1; 25 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/lib/AI/MXNet/LinAlg/NDArray.pm: -------------------------------------------------------------------------------- 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::LinAlg::NDArray; 19 | use strict; 20 | use warnings; 21 | use parent 'AI::MXNet::AutoLoad'; 22 | sub config { ('linalg', 'AI::MXNet::NDArray') } 23 | 24 | 1; 25 | -------------------------------------------------------------------------------- /perl-package/AI-MXNet/lib/AI/MXNet/LinAlg/Symbol.pm: -------------------------------------------------------------------------------- 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::LinAlg::Symbol; 19 | use strict; 20 | use warnings; 21 | use parent 'AI::MXNet::AutoLoad'; 22 | sub config { ('linalg', 'AI::MXNet::Symbol') } 23 | 24 | 1; 25 | -------------------------------------------------------------------------------- /scala-package/infer/src/main/scala/org/apache/mxnet/infer/package.scala: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * 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, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.mxnet 19 | 20 | package object infer { 21 | private[mxnet] val handlerType = MXNetHandlerType.SingleThreadHandler 22 | } 23 | --------------------------------------------------------------------------------