2020-07-07 07:28:26 +08:00
|
|
|
// RUN: mlir-hlo-opt %s -pass-pipeline='func(canonicalize)' | FileCheck %s
|
|
|
|
|
|
|
|
// CHECK-LABEL: func @single_operand
|
|
|
|
// CHECK-SAME: [[ARG:%[a-zA-Z0-9]+]]
|
|
|
|
func @single_operand(%arg: tensor<1x2xf32>) -> tensor<1x2xf32> {
|
2020-07-07 12:51:24 +08:00
|
|
|
%0 = "mhlo.concatenate"(%arg) {dimension = 0 : i64} : (tensor<1x2xf32>) -> tensor<1x2xf32>
|
2020-07-07 07:28:26 +08:00
|
|
|
// CHECK-NEXT: return [[ARG]]
|
|
|
|
return %0 : tensor<1x2xf32>
|
|
|
|
}
|