Files
clang-p2996/mlir/test/Integration/Dialect/SparseTensor/taco/data/nell-2.tns
Bixia Zheng 93c81f44cc [mlir][taco] Uses sparse_tensor.new to read tensor input data from files.
Replace the Python implementation for reading tensor input data from files with
create_sparse_tensor that uses sparse_tensor.new.

The MLIR TNS format has two extra meta data lines. Add the extra meta data to a
test data file.

Implement TACO tensor methods evaluate and unpack.

Add unit tests.

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D118803
2022-02-03 08:26:33 -08:00

11 lines
136 B
Plaintext

# Extended FROSTT format:
# rank number-non-zero-elements
# dimension-sizes
3 5
2 4 4
1 1 1 1.0
1 2 2 2.0
1 3 4 3.0
2 1 1 1.0
2 4 3 2.0