We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It failed when I run some case like:
module { func.func @forward(%arg0: tensor<4xf32>) -> tensor<4xi1> { %0 = stablehlo.convert %arg0 : (tensor<4xf32>) -> tensor<4xi1> return %0 : tensor<4xi1> } }
The text was updated successfully, but these errors were encountered:
Can you please elaborate on the error message?
Actually, the i1 type is supported in the interpreter. For example,
i1
$ cat test.mlir module { func.func @forward() -> tensor<4xi1> { %cst = stablehlo.constant dense<3.0> : tensor<4xf32> %0 = stablehlo.convert %cst : (tensor<4xf32>) -> tensor<4xi1> return %0 : tensor<4xi1> } } $ stablehlo-translate --interpret test.mlir tensor<4xi1> { [true, true, true, true] }
Note: I have modified the above program to specify some input to convert op.
convert
If I run the above mentioned program as is we will get something like (from cs)
error: incorrect number of arguments specified, provided 0 inputs but function expected 1
which means that we have not provided constant inputs equal to the number of program arguments. Please refer to
stablehlo/examples/c++/ExampleAdd.cpp
Line 91 in 726ac03
stablehlo/stablehlo/integrations/python/tests/stablehlo.py
Line 283 in 726ac03
Please let me know if this helps.
Sorry, something went wrong.
sdasgup3
No branches or pull requests
Request description
It failed when I run some case like:
The text was updated successfully, but these errors were encountered: