1. 13 2月, 2019 1 次提交
    • G
      Clang build fixes (#15628) · da9c94da
      Gabor Buella 提交于
      * Remove some superfluous std::move calls
      
      The std:move triggered a build error (with -Werror):
      ```
      [  9%] Building CXX object paddle/fluid/memory/allocation/CMakeFiles/allocator_facade.dir/allocator_facade.cc.o
      /home/tej/code/gbuella_paddle/paddle/fluid/memory/allocation/allocator_facade.cc:86:29: error: moving a temporary object prevents copy elision [-Werror,-Wpessimizing-move]
                  [this] { return std::move(CreateAllocatorWithChunk()); }, capacity);
                                  ^
      /home/tej/code/gbuella_paddle/paddle/fluid/memory/allocation/allocator_facade.cc:86:29: note: remove std::move call here
                  [this] { return std::move(CreateAllocatorWithChunk()); }, capacity);
                                  ^~~~~~~~~~                          ~
      1 error generated.
      ```
      
      See: https://reviews.llvm.org/D7633
      
      * Remove a superfluous lambda capture from framework/operator.h
      
      ```
      [ 10%] Building CXX object paddle/fluid/platform/CMakeFiles/device_context.dir/init.cc.o
      In file included from /home/tej/code/gbuella_paddle/paddle/fluid/platform/init.cc:19:
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/operator.h:229:21: error: lambda capture 'this' is not used [-Werror,-Wunused-lambda-capture]
                         [this](Variable* var) { return var; });
                          ^~~~
      1 error generated.
      ```
      
      Changing it to `return it->second;`, as is in the function below.
      
      * Rethrow an exception (instead of copying it)
      
      ```
      [ 11%] Building CXX object paddle/fluid/framework/CMakeFiles/operator.dir/operator.cc.o
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/operator.cc:191:13: error: local variable 'exception' will be copied despite being thrown by name [-Werror,-Wreturn-std-move]
            throw exception;
                  ^~~~~~~~~
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/operator.cc:191:13: note: call 'std::move' explicitly to avoid copying
            throw exception;
                  ^~~~~~~~~
                  std::move(exception)
      
      ```
      
      See https://reviews.llvm.org/D43322 for an explanation of this diagnostic message.
      
      * Remove an unused variable
      
      ```
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/operator.cc:884:16: error: private field 'scope_' is not used [-Werror,-Wunused-private-field]
        const Scope& scope_;
                     ^
      ```
      
      * struct ComputationOpHandle -> class ComputationOpHandle
      
      ```
      [ 13%] Building CXX object paddle/fluid/framework/details/CMakeFiles/memory_early_delete_pass.dir/memory_early_delete_pass.cc.o
      In file included from /home/tej/code/gbuella_paddle/paddle/fluid/framework/details/memory_early_delete_pass.cc:21:
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/details/reference_count_pass_helper.h:30:1: error: class 'ComputationOpHandle' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Werror,-Wmismatched-tags]
      class ComputationOpHandle;
      ^
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/details/computation_op_handle.h:29:8: note: previous use is here
      struct ComputationOpHandle : public OpHandleBase {
             ^
      /home/tej/code/gbuella_paddle/paddle/fluid/framework/details/reference_count_pass_helper.h:30:1: note: did you mean struct here?
      class ComputationOpHandle;
      ^~~~~
      struct
      1 error generated.
      ```
      
      * Fix name() methods under fluid/operators
      
      ```
      In file included from /home/tej/code/gbuella_paddle/paddle/fluid/operators/jit/gen/act.cc:15:
      In file included from /home/tej/code/gbuella_paddle/paddle/fluid/operators/jit/gen/act.h:19:
      /home/tej/code/gbuella_paddle/paddle/fluid/operators/jit/gen/jitcode.h:71:23: error: 'name' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
        virtual const char* name() const = 0;
                            ^
      /home/tej/code/gbuella_paddle/paddle/fluid/operators/jit/gen_base.h:31:23: note: overridden virtual function is here
        virtual const char* name() const = 0;
                            ^
      ```
      
      test=develop
      da9c94da
  2. 11 2月, 2019 1 次提交
  3. 01 2月, 2019 1 次提交
  4. 31 1月, 2019 2 次提交
  5. 30 1月, 2019 2 次提交
  6. 29 1月, 2019 1 次提交
  7. 28 1月, 2019 1 次提交
  8. 24 1月, 2019 1 次提交
    • N
      fix two bug: · 0779e355
      nhzlx 提交于
      1. graph and program_desc alignment
      2. trt stream
      
      test=develop
      0779e355
  9. 21 1月, 2019 3 次提交
  10. 19 1月, 2019 1 次提交
  11. 14 1月, 2019 2 次提交
  12. 13 1月, 2019 2 次提交
  13. 11 1月, 2019 1 次提交
  14. 10 1月, 2019 5 次提交
  15. 08 1月, 2019 1 次提交
  16. 07 1月, 2019 2 次提交
  17. 27 12月, 2018 2 次提交
    • W
      refine batch merge pass (#14777) · e26cced7
      Wu Yi 提交于
      * refine batch merge pass
      
      * refine batch merge pass test=develop
      e26cced7
    • C
      [WIP] Refine MultiDevSSAGraph (#15040) · fe8495a7
      chengduo 提交于
      * refine parallel_exe
      test=develop
      
      * rename shared_var_device
      
      * code refine
      
      * add test_weight_decay
      
      * remove Sort
      test=develop
      
      * Add SortForReduce
      test=develop
      
      * code refine
      test=develop
      
      * follow comment
      test=develop
      fe8495a7
  18. 26 12月, 2018 2 次提交
  19. 25 12月, 2018 1 次提交
  20. 21 12月, 2018 1 次提交
  21. 19 12月, 2018 1 次提交
    • T
      MKLDNN residual connection fuse: fixing accuracy problem (#14874) · e9eee0de
      Tomasz Patejko 提交于
      * MKLDNN residual connection fuse: conv op reused
      
      test=develop
      
      * MKLDNN residual connection fuse: added prints for checking fuse
      
      test=develop
      
      * MKLDNN residual connection fuse: add more prints
      
      test=develop
      
      * MKLDNN residual connection fuse: add hash function. test=develop
      
      * MKLDNN residual connection fuse: add hash to elementwise_add
      
      test=develop
      
      * MKLDNN residual connection fuse: add more hashes. test=develop
      
      * MKLDNN residual connection fuse: added hashes to relu
      
      test=develop
      
      * MKLDNN residual connection fuse: do not fuse when fuse_relu is on
      
      * MKLDNN residual connection fuse: check if fuse_relu attribute is set
      
      test=develop
      
      * MKLDNN residual connection fuse: comment out some printouts
      
      * MKLDNN residual connection fuse: remove unused functions in the pass code
      
      * MKLDNN residual connection fuse: delete commented hashes and printouts
      
      * MKLDNN residual connection fuse: remove unnecessary includes. test=develop
      e9eee0de
  22. 18 12月, 2018 1 次提交
    • D
      add ir memory optimize. (#14530) · 7cd24b13
      dzhwinter 提交于
      * follow comments. test=develop
      
      * Fix typo
      
      * fix compile error. test=develop
      
      * merge develop branch. test=develop
      
      * Remove set_equal
      
      * Polish code
      
      * Delete unused functions
      
      test=develop
      
      * polish code. test=develop
      
      * follow comment
      
      * polish code.
      
      * fix windows compile error. test=develop
      
      * fix op handle.
      
      * rerun ci. test=develop
      
      * rerun ci. test=develop
      
      * rerun macci. test=develop
      
      * polish code. test=develop
      
      * rewrite sort code. test=develop
      
      * remove unused code. test=develop
      
      * fix tests. test=develop
      
      * fix conflict. test=develop
      
      * follow comment. test=develop
      
      * merge develop branch. test=develop
      
      * fix tests. test=develop
      
      * remove ToTypeIndex. test=develop
      
      * rerun ci. test=develop
      7cd24b13
  23. 17 12月, 2018 2 次提交
  24. 16 12月, 2018 2 次提交
  25. 14 12月, 2018 1 次提交