1. 29 10月, 2019 1 次提交
    • C
      [Cherry-pick to 1.6] Block part of "tensor should not be null" error message (#20845) · d29e9aa4
      Chen Weihang 提交于
      * Add IndicateVarDataType interface to block tensor is not initialized problem in OP GetExceptedKernelType (#20044)
      
      * add indicate_var_data_type inferface, test=develop
      
      * add unittests & polish error message, test=develop
      
      * remove needless include, test=develop
      
      * extract public function & polish message, test=develop
      
      * delete empty var check, test=develop
      
      * change data_type to pointer parameter, test=develop
      
      * polish details, test=develop
      
      * Replace risky GetInputType method with secure IndicateVarDataType interface (#20668)
      
      * replace part of the old implementation, test=develop
      
      * restore concat op, test=develop
      
      * update all ops implemention & delete GetDataTypeOfVar func, test=develop
      
      test=release/1.6
      d29e9aa4
  2. 18 12月, 2018 1 次提交
  3. 12 12月, 2018 1 次提交
  4. 26 10月, 2018 1 次提交
  5. 21 10月, 2018 1 次提交
  6. 28 9月, 2018 1 次提交
    • Y
      refactor(op): polish generate_proposals_op · 593ad763
      Yu Yang 提交于
      Polish styles in generate_proposals_op.
      
      1. inline lambda functions rathar than use std::function to save var.
      2. add `static inline` to template functions .cc
         * Make them static to prevent generating symbols.
         * Make them inline to give compiler a hit inline them as possible.
         * Not if the function is not static, they cannot be inlined since the
           symbols should be exported.
      3. add `static` to global functions in .cc
         * Make them static to prevent generating symbols.
      4. Use Vector<uint64> instead manually manange storage between devices.
      5. Prefer to use platform::ForRange, so we can optimize `ForRange` by
         just changing `for_range.h` if it is needed.
      6. Do not change shape of inputs
      
      test=develop
      593ad763
  7. 27 9月, 2018 1 次提交
  8. 14 9月, 2018 1 次提交
  9. 04 9月, 2018 1 次提交
  10. 31 8月, 2018 1 次提交
  11. 29 8月, 2018 1 次提交