[Mlir-commits] [mlir] [mlir][Transforms] Dialect conversion: Add missing "else if" branch (PR #101148)
Adrian Kuegel
llvmlistbot at llvm.org
Wed Jul 31 04:00:38 PDT 2024
akuegel wrote:
Full expected output:
```
func.func @tensorlistWhileLoop(%arg0: tensor<2x3xf32>) -> tensor<2x3xf32> {
%cst = arith.constant dense<3> : tensor<1xi32>
%cst_0 = arith.constant dense<0> : tensor<i32>
%cst_1 = arith.constant dense<-1> : tensor<i32>
%0:2 = "tf.While"(%cst_0, %arg0) <{body = @tensorlistWhileBody, cond = @tensorlistWhileCond, is_stateless = false}> : (tensor<i32>, tensor<2x3xf32>) -> (tensor<i32>, tensor<2x3xf32>)
return %0#1 : tensor<2x3xf32>
}
```
https://github.com/llvm/llvm-project/pull/101148
More information about the Mlir-commits
mailing list