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
11 lines
136 B
Plaintext
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
|