taco
taco copied to clipboard
Taco does not currently generate correct code for sparse outputs
This is an umbrella issue for the problems with sparse outputs. The cases I've tried that are failing are (capital letters are sparse matrices, D is a diagonal matrix, scalars are c<num>):
A * B
A^T * D * A
A^T * A
(c0 * A + B)^T * (c1 * B^T + C)
A * B * C
(A + B) * (A + B + C)
(#263 is a specific instance)
@fredrikbk might have more to say, but it looks like all these kernels will require taco to support generating code that uses workspaces (#184). @amaleewilson and @RawnH have been working towards implementing support for workspaces in taco, though that work is still ongoing as far as I'm aware.
A large percentage of the tensora (a python wrapper) test suite fails due to incorrect code generation from TACO - https://github.com/drhagen/tensora
Tests are combinatorially generated, so cover many cases that come up in our work.
#325 adds a (disabled) test for A * B. Enable it to see which combinations of matrix formats fail.