This is an automated email from the ASF dual-hosted git repository. wangwei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/singa.git
commit f5a9cdfd9866851adf5e5909250add3f62acbf27 Merge: c5769f1 fb9be0f Author: wang wei <[email protected]> AuthorDate: Fri Sep 18 14:00:21 2020 +0800 Merge branch 'dev' for V3.1-RC1 .asf.yaml | 2 + .asf.yaml => .codecov.yml | 11 +- .github/workflows/conda.yaml | 71 + .github/workflows/macOS.yaml | 56 + .github/workflows/rat.yaml | 2 +- .github/workflows/ubuntu.yaml | 64 + .travis.yml | 70 - CMakeLists.txt | 1 + README.md | 9 +- examples/cnn/README.md | 2 +- examples/cnn/autograd/mnist_cnn.py | 27 +- examples/cnn/autograd/xceptionnet.py | 119 +- examples/cnn/benchmark.py | 26 +- examples/cnn/model/alexnet.py | 70 +- examples/cnn/model/cnn.py | 36 +- examples/cnn/model/resnet.py | 129 +- examples/cnn/model/xceptionnet.py | 133 +- examples/cnn/{train.py => train_cnn.py} | 33 +- examples/cnn/train_mpi.py | 29 +- examples/cnn/train_multiprocess.py | 32 +- examples/{rnn => gan}/README.md | 24 +- examples/gan/lsgan.py | 335 +- examples/gan/model/gan_mlp.py | 104 + examples/gan/model/lsgan_mlp.py | 101 + examples/gan/vanilla.py | 318 +- examples/mlp/module.py | 54 +- examples/mlp/native.py | 2 +- examples/onnx/arcface.py | 59 +- examples/onnx/bert/bert-squad.py | 50 +- examples/onnx/bert/tokenization.py | 4 - examples/onnx/fer_emotion.py | 51 +- examples/onnx/gpt2/gpt2.py | 110 + examples/onnx/gpt2/requirements.txt | 1 + examples/onnx/mnist.py | 320 - examples/onnx/mobilenet.py | 52 +- examples/onnx/resnet18.py | 49 +- examples/onnx/ro_bert_a.py | 103 + examples/onnx/{mobilenet.py => shufflenetv2.py} | 61 +- examples/onnx/tiny_yolov2.py | 62 +- examples/onnx/training/model.json | 84 + examples/{cnn => onnx/training}/train.py | 140 +- examples/onnx/utils.py | 13 +- examples/onnx/vgg16.py | 50 +- examples/{rnn => qabot}/README.md | 23 +- examples/qabot/qabot_data.py | 282 + examples/qabot/qabot_model.py | 152 + examples/qabot/qabot_train.py | 159 + examples/rbm/train.py | 16 +- examples/rnn/README.md | 21 +- examples/rnn/{train.py => char_rnn.py} | 59 +- examples/rnn/imdb_data.py | 283 + examples/rnn/imdb_model.py | 58 + examples/rnn/imdb_train.py | 176 + include/singa/core/common.h | 12 +- include/singa/core/device.h | 46 +- include/singa/core/scheduler.h | 48 +- include/singa/core/tensor.h | 45 +- include/singa/io/communicator.h | 15 +- java/pom.xml | 1 + python/singa/autograd.py | 3018 ++++++---- python/singa/converter.py | 242 - python/singa/device.py | 62 +- python/singa/initializer.py | 264 +- python/singa/layer.py | 2774 +++++---- python/singa/loss.py | 216 - python/singa/metric.py | 218 - python/singa/model.py | 354 ++ python/singa/module.py | 193 - python/singa/net.py | 531 -- python/singa/opt.py | 656 +- python/singa/optimizer.py | 472 -- python/singa/snapshot.py | 3 + python/singa/sonnx.py | 1835 +++--- python/singa/tensor.py | 113 +- python/singa/utils.py | 69 +- setup.py | 440 ++ src/CMakeLists.txt | 5 + src/api/core_device.i | 4 + src/api/core_tensor.i | 36 +- src/api/model_operation.i | 38 + src/api/model_optimizer.i | 71 - src/api/singa.i | 6 +- src/core/device/cpp_cpu.cc | 13 + src/core/device/cuda_gpu.cc | 77 +- src/core/device/device.cc | 41 +- src/core/device/opencl_device.cc | 2 +- src/core/device/platform.cc | 2 + src/core/scheduler/scheduler.cc | 197 +- src/core/tensor/math_kernel.cu | 93 +- src/core/tensor/math_kernel.h | 15 +- src/core/tensor/tensor.cc | 374 +- src/core/tensor/tensor_math.h | 30 + src/core/tensor/tensor_math_cpp.h | 101 + src/core/tensor/tensor_math_cuda.h | 165 +- src/io/communicator.cc | 345 +- src/model/layer/cudnn_activation.cc | 4 +- src/model/layer/cudnn_convolution.cc | 2 +- src/model/layer/cudnn_dropout.cc | 8 +- src/model/operation/batchnorm.cc | 12 +- src/model/operation/convolution.cc | 34 +- src/model/operation/pooling.cc | 8 +- src/model/operation/rnn.cc | 808 +++ src/model/operation/rnn.h | 136 + test/python/cuda_helper.py | 2 +- test/python/run.py | 16 +- test/python/test_api.py | 192 +- test/python/test_dist.py | 2 +- test/python/test_initializer.py | 123 + test/python/test_layer.py | 276 - test/python/test_loss.py | 71 - test/python/test_metric.py | 74 - test/python/test_model.py | 499 ++ test/python/test_module.py | 306 - test/python/test_net.py | 115 - test/python/test_onnx.py | 170 +- test/python/test_onnx_backend.py | 3225 +--------- test/python/test_operation.py | 764 ++- test/python/test_opt.py | 230 + test/python/test_optimizer.py | 382 -- test/python/test_tensor.py | 149 +- test/singa/test_cpp_cpu.cc | 4 +- test/singa/test_operation_rnn.cc | 141 + test/singa/test_scheduler.cc | 106 +- test/singa/test_tensor_math.cc | 10 + tool/conda/dist/meta.yaml | 8 +- tool/conda/docker/cuda10.2/Dockerfile | 63 + tool/conda/gpu/meta.yaml | 2 +- tool/conda/singa/conda_build_config.yaml | 25 +- tool/conda/singa/meta.yaml | 13 +- tool/cpplint.py | 6327 -------------------- tool/docker/README.md | 9 +- .../devel/centos6/cuda10/Dockerfile.manylinux2014 | 132 + tool/docker/devel/centos6/cuda10/cuda.repo | 6 + tool/docker/devel/ubuntu/cuda10/Dockerfile | 2 +- tool/docker/devel/ubuntu/cuda9/Dockerfile | 2 +- tool/linting/py.sh | 4 +- tool/travis/build.sh | 55 - tool/travis/depends.sh | 43 - tool/wheel.sh | 43 + 139 files changed, 13686 insertions(+), 18457 deletions(-)
