[mlir] 对tensor.reshape的语法理解出错

对下面测试用例中的语法规范理解出错,豆包反馈是非法。deepseek能正常处理,确认是合法的

func.func @shape_of_from_reshape(%arg0: tensor<?xf32>, %arg1: tensor<?xindex>) -> tensor<?xindex> { 
  %0 = tensor.reshape %arg0(%arg1) : (tensor<*xf32>, tensor<?xindex>) -> tensor<?xf32> 
  // 获取重塑后的动态形状 
  %1 = shape.shape_of %0 : (tensor<?xf32>) -> tensor<?xindex> 
  return %1 : tensor<?xindex> 
} 
164
0
0
avatar

补充:在https://godbolt.org/z/6a3hPrnhd中看到 mlir-opt 能正确的处理

0
0评论
0
关于作者

文章

0

获赞

0

收藏

0