Closed sogartar closed 1 year ago
Related to https://github.com/openxla/iree/issues/12783
I tried your code with your test code and I was able to compile it successfully:
iree/build$ cat f1.mlir
func.func @f1(%arg0: tensor<1xf32>) -> tensor<1xf32> {
%0 = math.exp2 %arg0 : tensor<1xf32>
return %0 : tensor<1xf32>
}
iree/build$ ./tools/iree-compile --iree-hal-target-backends=llvm-cpu -o f1.vmfb f1.mlir
iree/build$
What happened?
math.exp2
for tensor types can't be compiled for the target backendllvm-cpu
.It gives:
Steps to reproduce your issue
Compile this MLIR
with
This gives the error
What component(s) does this issue relate to?
MLIR, Compiler
Version information
d1ae167ad685e068f55a736e2e0861e324175313
Additional context
No response