[Mlir-commits] [mlir] [mlir][tosa] Check for 0-ranked-tensors	during fold (PR #68512)
    Eric Kunze 
    llvmlistbot at llvm.org
       
    Tue Oct 10 16:54:42 PDT 2023
    
    
  
================
@@ -591,3 +591,13 @@ func.func @fold_abs_abs(%arg0: tensor<?x1xf32>) -> tensor<?x1xf32> {
   %1 = tosa.abs %0 : (tensor<?x1xf32>) -> tensor<?x1xf32>
   return %1 : tensor<?x1xf32>
 }
+
+// -----
+
+// CHECK-LABEL: @rank_zero
----------------
eric-k256 wrote:
Can you make a change to make the name more descriptive? Maybe something like fold_reduce_rank_zero or something similar.
https://github.com/llvm/llvm-project/pull/68512
    
    
More information about the Mlir-commits
mailing list