对下面测试用例中的语法规范理解出错,豆包反馈是非法。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>
}