[mlir][sparse] Moving the sort from factory method to the constructor.
This guarantees the preconditions of fromCOO; whereas prior to this, one could call the constructor directly with an unsorted tensor, which would cause fromCOO to misbehave. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D117167
Loading
Please sign in to comment