jiazhihao / TASO

The Tensor Algebra SuperOptimizer for Deep Learning
Apache License 2.0
692 stars 90 forks source link

A bug about transpose??? #63

Closed StepyHan closed 4 years ago

StepyHan commented 4 years ago

https://github.com/jiazhihao/TASO/blob/master/src/core/transpose.cc#L60 Hi dear author, it seems that the " != " should be modified to "==" : )

  for (int i = 0; i < ndim; i++)
    for (int j = i + 1; j < ndim; j++)
      if (permArray[i] != permArray[j]) {
        return Op::INVALID_OP;
      }
jiazhihao commented 4 years ago

Thanks for the report. The bug should have been fixed.