blob: 923c4d4808779d302d814408680a1fc7b651aa3b [file] [log] [blame]
// RUN: iree-run-mlir -iree-hal-target-backends=interpreter-bytecode %s -input-value="2x1x6xf32= 1 2 3 4 5 6 7 8 9 10 11 12" | IreeFileCheck %s
// RUN: [[ $IREE_VULKAN_DISABLE == 1 ]] || (iree-run-mlir -iree-hal-target-backends=vulkan-spirv %s -input-value="2x1x6xf32= 1 2 3 4 5 6 7 8 9 10 11 12" | IreeFileCheck %s)
// CHECK-LABEL: EXEC @reshape_3D_1D
func @reshape_3D_1D(%arg : tensor<2x1x6xf32>) -> tensor<2x6xf32> {
%result = "xla_hlo.reshape"(%arg) : (tensor<2x1x6xf32>) -> tensor<2x6xf32>
return %result : tensor<2x6xf32>
}
// CHECK: 2x6xf32=[1 2 3 4 5 6][7 8 9 10 11 12]