• W
    Fix scatter and gather op when has duplicate index (#17952) · 8eb134c3
    wawltor 提交于
    * test=develop
    The scatter op has a calc bug when the indices has same index, the scatter op use overwrite mode to calculate the same index, fix this bug by using the accumulate mode to calculate the same index.At the same time, the gather op has the same bug when the op calc the grad. And we use the lib of open-blas and eigen to optimize the time cost in accumulate mode.
    
    * test=develop
    Fix some code format problem, and the same time add the test case in gather and scatter op
    8eb134c3
gather_op.cc 4.8 KB