You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2020/02/01 12:42:48 UTC

[singa] branch dev updated (c2e98d5 -> 4844c57)

This is an automated email from the ASF dual-hosted git repository.

wangwei pushed a change to branch dev
in repository https://gitbox.apache.org/repos/asf/singa.git.


    from c2e98d5  Merge pull request #548 from dcslin/dnnl
     new 22442c3  integrated pylint into travis with limited check for now
     new 3593deb  integrated cpplint into travis
     new becd303  refactored linting into a script for developer testing at local
     new 474e139  added travis depend sh install cpplint
     new f3c1649  added travis depend sh install cpplint - fix conda channels
     new 7541365  customized tool to respect google style and ignore linting in travis build
     new f7a5c5e  made clang format use google style, not explicitly listing all google style options
     new 03a0c77  Merge remote-tracking branch 'upstream/dev' into code-format-linting
     new 4f9e6c2  excluded files to be refactored soon
     new e1994bf  exclude examples except examples/autograd
     new 19e0015  Merge remote-tracking branch 'upstream/dev' into code-format-linting
     new 4844c57  Merge pull request #581 from dcslin/code-format-linting

The 1621 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../cifar10/caffe/__init__.py => .clang-format     |    4 +
 .pylintrc                                          |  582 ++++++
 python/rafiki/__init__.py => .style.yapf           |    4 +-
 tool/debian-python2/postinst => CPPLINT.cfg        |   10 +-
 examples/autograd/cifar10_multiprocess.py          |   15 +-
 examples/autograd/download_mnist.py                |    4 +-
 examples/autograd/mlp.py                           |    1 -
 examples/autograd/mnist_cnn.py                     |   96 +-
 examples/autograd/mnist_dist.py                    |   14 +-
 examples/autograd/mnist_multiprocess.py            |   14 +-
 examples/autograd/resnet.py                        |   49 +-
 examples/autograd/resnet_cifar10.py                |  115 +-
 examples/autograd/resnet_dist.py                   |    5 +-
 examples/autograd/sparsification_mnist.py          |   23 +-
 examples/autograd/xceptionnet.py                   |  151 +-
 include/singa/core/common.h                        |   27 +-
 include/singa/core/device.h                        |  108 +-
 include/singa/core/memory.h                        |   12 +-
 include/singa/core/tensor.h                        |  113 +-
 include/singa/utils/channel.h                      |    2 +-
 include/singa/utils/cuda_utils.h                   |  121 +-
 include/singa/utils/factory.h                      |   16 +-
 include/singa/utils/integer.h                      |   49 +-
 include/singa/utils/logging.h                      |   55 +-
 include/singa/utils/opencl_utils.h                 |   27 +-
 include/singa/utils/safe_queue.h                   |   27 +-
 include/singa/utils/singleton.h                    |    2 +-
 include/singa/utils/string.h                       |   15 +-
 include/singa/utils/timer.h                        |   13 +-
 include/singa/utils/tinydir.h                      |  686 +++----
 python/rafiki/agent.py                             |  164 +-
 python/singa/autograd.py                           |  735 ++++---
 python/singa/converter.py                          |   31 +-
 python/singa/data.py                               |   27 +-
 python/singa/image_tool.py                         |   59 +-
 python/singa/layer.py                              |  219 ++-
 python/singa/loss.py                               |    1 -
 python/singa/metric.py                             |    4 +-
 python/singa/model.py                              |    2 +-
 python/singa/net.py                                |   17 +-
 python/singa/opt.py                                |   82 +-
 python/singa/optimizer.py                          |   92 +-
 python/singa/sonnx.py                              |  323 ++--
 python/singa/tensor.py                             |  101 +-
 src/core/device/cpp_cpu.cc                         |   17 +-
 src/core/device/cuda_gpu.cc                        |    4 +-
 src/core/device/device.cc                          |   10 +-
 src/core/device/opencl_device.cc                   |  124 +-
 src/core/device/opencl_func.h                      |  850 +++++++-
 src/core/device/platform.cc                        |   33 +-
 src/core/memory/memory.cc                          |   21 +-
 src/core/tensor/math_kernel.h                      |   17 +-
 src/core/tensor/tensor.cc                          |  566 +++---
 src/core/tensor/tensor_math.h                      |  165 +-
 src/core/tensor/tensor_math_cpp.h                  |  499 +++--
 src/core/tensor/tensor_math_cuda.h                 |  548 +++---
 src/core/tensor/tensor_math_opencl.h               |  387 ++--
 src/model/operation/batchnorm.cc                   |  152 +-
 src/model/operation/batchnorm.h                    |   44 +-
 src/model/operation/convolution.cc                 |  264 +--
 src/model/operation/convolution.h                  |   55 +-
 src/model/operation/pooling.cc                     |   82 +-
 src/model/operation/pooling.h                      |   15 +-
 src/utils/logging.cc                               |   30 +-
 test/python/test_api.py                            |   28 +-
 test/python/test_layer.py                          |   87 +-
 test/python/test_loss.py                           |   18 +-
 test/python/test_metric.py                         |   20 +-
 test/python/test_mkldnn.py                         |   23 +-
 test/python/test_net.py                            |   14 +-
 test/python/test_onnx.py                           |  507 +++--
 test/python/test_onnx_backend.py                   | 1070 +++++-----
 test/python/test_operation.py                      | 2041 +++++++++++++-------
 test/python/test_optimizer.py                      |   14 +-
 test/python/test_tensor.py                         |  108 +-
 test/singa/test_activation.cc                      |   34 +-
 test/singa/test_adagrad.cc                         |    2 +-
 test/singa/test_batchnorm.cc                       |    8 +-
 test/singa/test_concat.cc                          |   33 +-
 test/singa/test_cpp_cpu.cc                         |    9 +-
 test/singa/test_cross_entropy.cc                   |    9 +-
 test/singa/test_csv.cc                             |    8 +-
 test/singa/test_cudnn_activation.cc                |   14 +-
 test/singa/test_cudnn_batchnorm.cc                 |   87 +-
 test/singa/test_cudnn_convolution.cc               |   15 +-
 test/singa/test_cudnn_dropout.cc                   |    1 -
 test/singa/test_cudnn_lrn.cc                       |   65 +-
 test/singa/test_cudnn_rnn.cc                       |   40 +-
 test/singa/test_cudnn_softmax.cc                   |    4 +-
 test/singa/test_dense.cc                           |   12 +-
 test/singa/test_ep.cc                              |   23 +-
 test/singa/test_flatten.cc                         |    2 +-
 test/singa/test_image_transformer.cc               |   45 +-
 test/singa/test_initializer.cc                     |   41 +-
 test/singa/test_jpg.cc                             |   12 +-
 test/singa/test_logging.cc                         |    4 +-
 test/singa/test_memory.cc                          |    4 +-
 test/singa/test_mse.cc                             |   15 +-
 test/singa/test_opencl.cc                          |   70 +-
 test/singa/test_opencl_convolution.cc              |    8 +-
 test/singa/test_opencl_device.cc                   |   14 +-
 test/singa/test_opencl_pooling.cc                  |    7 +-
 test/singa/test_operation_batchnorm.cc             |    2 +-
 test/singa/test_operation_pooling.cc               |   26 +-
 test/singa/test_platform.cc                        |   34 +-
 test/singa/test_prelu.cc                           |   12 +-
 test/singa/test_rmsprop.cc                         |    2 +-
 test/singa/test_sgd.cc                             |   12 +-
 test/singa/test_slice.cc                           |   38 +-
 test/singa/test_snapshot.cc                        |   10 +-
 test/singa/test_softmax.cc                         |   18 +-
 test/singa/test_tensor.cc                          |   14 +-
 test/singa/test_tensor_math.cc                     |  128 +-
 test/singa/test_timer.cc                           |    6 +-
 .../model_zoo/mnist => tool/code-format}/README.md |   31 +-
 test/python/run.py => tool/code-format/format.sh   |   12 +-
 CONTRIBUTING.md => tool/linting/README.md          |   28 +-
 test/python/run.py => tool/linting/linting.sh      |   28 +-
 tool/travis/build.sh                               |   13 +-
 tool/travis/depends.sh                             |    6 +-
 120 files changed, 7804 insertions(+), 5232 deletions(-)
 copy examples/cifar10/caffe/__init__.py => .clang-format (93%)
 create mode 100644 .pylintrc
 copy python/rafiki/__init__.py => .style.yapf (96%)
 copy tool/debian-python2/postinst => CPPLINT.cfg (83%)
 mode change 100755 => 100644 include/singa/core/tensor.h
 mode change 100755 => 100644 src/core/tensor/tensor.cc
 mode change 100755 => 100644 src/model/operation/batchnorm.cc
 mode change 100755 => 100644 src/model/operation/batchnorm.h
 mode change 100755 => 100644 src/model/operation/convolution.cc
 mode change 100755 => 100644 src/model/operation/convolution.h
 mode change 100755 => 100644 src/model/operation/pooling.cc
 mode change 100755 => 100644 test/singa/test_operation_batchnorm.cc
 copy {doc/zh/docs/model_zoo/mnist => tool/code-format}/README.md (55%)
 copy test/python/run.py => tool/code-format/format.sh (77%)
 copy CONTRIBUTING.md => tool/linting/README.md (59%)
 copy test/python/run.py => tool/linting/linting.sh (64%)