• Y
    Move static variable defined in .cc (#2782) · 267f9a2c
    Yu Yang 提交于
    * Move static variable defined in .cc
    
    We cannot define static variable in .h, because it will be multi-defined
    errors.
    
    Also fix some cpp syntax, like:
    
    * Prefer to use algorithm not manually for-loop, to make code more
      readable.
    * Remove unused `()`.
    * Enforce take a bool. It is no need `xxx==true`.
    * Use range-based for-loop iterator from op_desc.attrs
    
    * Fix a protential static variable init order error
    267f9a2c
CMakeLists.txt 1.1 KB