Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/ExecutionEngine/SparseTensor/COO.h | ||
---|---|---|
86–87 | maybe move these to also to constructor as initializer? | |
87 | nit: isSorted(true), also moved to L74 as initializer? technically, when we start empty, we are sorted, this would also play nicer with the TODO below, where only the first out of order "add" invalides the flag |
Comment Actions
Finished TODO: the add method only invalidates the isSorted bit if the new element is not strictly-greater than the previously final element.
Comment Actions
Very neat! This will avoid the sort step in many cases where the external format already appears in the right order.
nit: isSorted(true), also moved to L74 as initializer? technically, when we start empty, we are sorted, this would also play nicer with the TODO below, where only the first out of order "add" invalides the flag