@@ -100,61 +100,6 @@ func.func @minimum_broadcast_shapes_one_operand(%arg: tensor<?xindex>) {
100
100
101
101
// -----
102
102
103
- func.func @rank_specialization_cluster (%arg0 : tensor <*xf32 >, %arg1 : tensor <*xf32 >,
104
- %arg2 : tensor <*xf32 >) -> tensor <*xf32 > {
105
- %0 = " chlo.rank_specialization_cluster" (%arg0 , %arg1 , %arg2 ) ({
106
- ^bb0 (%arg0_ : tensor <*xf32 >, %arg1_ : tensor <*xf32 >, %arg2_ : tensor <*xf32 >):
107
- %1 = chlo.broadcast_multiply %arg0_ , %arg1_
108
- : (tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
109
- %2 = chlo.broadcast_add %1 , %arg2_
110
- : (tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
111
- " chlo.rank_specialization_cluster_yield" (%2 ) : (tensor <*xf32 >) -> ()
112
- }) : (tensor <*xf32 >, tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
113
- func.return %0 : tensor <*xf32 >
114
- }
115
-
116
- // -----
117
-
118
- func.func @rank_specialization_cluster (%arg0 : tensor <*xf32 >,
119
- %arg1 : tensor <*xf32 >) -> tensor <*xf32 > {
120
- // expected-error @+1{{source has 2 operands, but target successor needs 1}}
121
- %0 = " chlo.rank_specialization_cluster" (%arg0 , %arg1 ) ({
122
- ^bb0 (%arg0_ : tensor <*xf32 >, %arg1_ : tensor <*xf32 >):
123
- " chlo.rank_specialization_cluster_yield" (%arg0_ , %arg1_ )
124
- : (tensor <*xf32 >, tensor <*xf32 >) -> ()
125
- }) : (tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
126
- func.return %0 : tensor <*xf32 >
127
- }
128
-
129
- // -----
130
-
131
- func.func @rank_specialization_cluster (%arg0 : tensor <*xf32 >) -> tensor <*xf32 > {
132
- // expected-error @+1{{block argument types must match operand types}}
133
- %0 = " chlo.rank_specialization_cluster" (%arg0 ) ({
134
- ^bb0 (%arg0_ : tensor <*xf32 >, %arg1_ : tensor <*xf32 >):
135
- " chlo.rank_specialization_cluster_yield" (%arg0_ ) : (tensor <*xf32 >) -> ()
136
- }) : (tensor <*xf32 >) -> tensor <*xf32 >
137
- func.return %0 : tensor <*xf32 >
138
- }
139
-
140
- // -----
141
-
142
- func.func @rank_specialization_cluster (%arg0 : tensor <*xf32 >, %arg1 : tensor <*xf32 >,
143
- %arg2 : tensor <*xf32 >) -> tensor <*xf32 > {
144
- // expected-error @+1{{nested ops must not depend on implicit operands}}
145
- %0 = " chlo.rank_specialization_cluster" (%arg0 , %arg1 , %arg2 ) ({
146
- ^bb0 (%arg0_ : tensor <*xf32 >, %arg1_ : tensor <*xf32 >, %arg2_ : tensor <*xf32 >):
147
- %1 = chlo.broadcast_multiply %arg0_ , %arg1_
148
- : (tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
149
- %2 = chlo.broadcast_add %1 , %arg2
150
- : (tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
151
- " chlo.rank_specialization_cluster_yield" (%2 ) : (tensor <*xf32 >) -> ()
152
- }) : (tensor <*xf32 >, tensor <*xf32 >, tensor <*xf32 >) -> tensor <*xf32 >
153
- func.return %0 : tensor <*xf32 >
154
- }
155
-
156
- // -----
157
-
158
103
func.func @top_k (%arg0 : tensor <f32 >) {
159
104
// expected-error @+2 {{failed to infer returned types}}
160
105
// @expected-error @+1{{operand's rank must be at least 1}}
0 commit comments