diff options
author | Bixia Zheng <bixia@google.com> | 2022-02-04 14:21:43 -0800 |
---|---|---|
committer | Bixia Zheng <bixia@google.com> | 2022-02-08 08:47:05 -0800 |
commit | 61a3dd70ff8dc4470d4a8d766ad09a2707bfb552 (patch) | |
tree | 7e057635d5beb841d02f4f5144e0efd3489142f4 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 620d99b7edc64ee87b1ce209f179305e6a919006 (diff) | |
download | llvm-61a3dd70ff8dc4470d4a8d766ad09a2707bfb552.zip llvm-61a3dd70ff8dc4470d4a8d766ad09a2707bfb552.tar.gz llvm-61a3dd70ff8dc4470d4a8d766ad09a2707bfb552.tar.bz2 |
[mlir][taco] Use sparse_tensor.out to write sparse tensors to files.
Add a Python method, output_sparse_tensor, to use sparse_tensor.out to write
a sparse tensor value to a file.
Modify the method that evaluates a tensor expression to return a pointer of the
MLIR sparse tensor for the result to delay the extraction of the coordinates and
non-zero values.
Implement the Tensor to_file method to evaluate the tensor assignment and write
the result to a file.
Add unit tests. Modify test golden files to reflect the change that TNS outputs
now have a comment line and two meta data lines.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D118956
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions