Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]MLIRSparseTensor example can't run #318

Open
cmx-Y opened this issue May 28, 2024 · 0 comments
Open

[Bug]MLIRSparseTensor example can't run #318

cmx-Y opened this issue May 28, 2024 · 0 comments

Comments

@cmx-Y
Copy link

cmx-Y commented May 28, 2024

Describe the bug
~/buddy-mlir/examples/MLIRSparseTensor/sparse-tensor-binary.mlir can not run.The same problem will occur when running other files in this folder.

To Reproduce
Just run this command: ~/buddy-mlir/examples/MLIRSparseTensor$ make sparse-tensor-binary-run

Bug Info

./sparse-tensor-binary.mlir:1:22: error: unexpected key: dimLevelType
#SV = #sparse_tensor.encoding<{
                     ^
Error: entry point not found
makefile:96: recipe for target 'sparse-tensor-binary-run' failed
make: *** [sparse-tensor-binary-run] Error 1

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version: 18.04
  • buddy-mlir version : faec06b
  • llvm version : 6c59f0e

Solution

#SV = #sparse_tensor.encoding<{
  dimLevelType = [ "compressed" ]
}>

should be replaced with

#SV = #sparse_tensor.encoding<{
  map = (i) -> (i : compressed)
}>

then run ~/buddy-mlir/examples/MLIRSparseTensor$ make sparse-tensor-binary-run, and you will get correct output like this:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant