@@ -282,15 +282,15 @@ func @conv_3d_input_ncdhw_filter_dhwcf(%input: memref<?x?x?x?x?xf32>, %filter: m
282
282
// CHECK: %{{.+}} = linalg.pooling_nhwc_sum
283
283
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
284
284
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
285
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x6x6x1xf32 >, tensor<3x3xf32>)
285
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x4x4x1xf32 >, tensor<3x3xf32>)
286
286
// CHECK-SAME: outs(%{{.+}} : tensor<1x2x2x1xf32>) -> tensor<1x2x2x1xf32>
287
- func @pooling_nhwc_sum_tensor (%input: tensor <1 x 6 x 6 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
287
+ func @pooling_nhwc_sum_tensor (%input: tensor <1 x 4 x 4 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
288
288
%fake = linalg.init_tensor [3 , 3 ] : tensor <3 x3 xf32 >
289
289
%init = linalg.init_tensor [1 , 2 , 2 , 1 ] : tensor <1 x2 x2 x1 xf32 >
290
290
%cst = constant 0.000000e+00 : f32
291
291
%fill = linalg.fill (%init , %cst ) : tensor <1 x2 x2 x1 xf32 >, f32 -> tensor <1 x2 x2 x1 xf32 >
292
292
%res = linalg.pooling_nhwc_sum {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
293
- ins (%input , %fake: tensor <1 x 6 x 6 x 1 x f32 >, tensor <3 x3 xf32 >)
293
+ ins (%input , %fake: tensor <1 x 4 x 4 x 1 x f32 >, tensor <3 x3 xf32 >)
294
294
outs (%fill: tensor <1 x2 x2 x1 xf32 >) -> tensor <1 x2 x2 x1 xf32 >
295
295
return %res : tensor <1 x2 x2 x1 xf32 >
296
296
}
@@ -301,11 +301,11 @@ func @pooling_nhwc_sum_tensor(%input: tensor<1x6x6x1xf32>) -> tensor<1x2x2x1xf32
301
301
// CHECK: linalg.pooling_nhwc_sum
302
302
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
303
303
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
304
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x6x6x1xf32 >, memref<3x3xf32>)
304
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x4x4x1xf32 >, memref<3x3xf32>)
305
305
// CHECK-SAME: outs(%{{.+}} : memref<1x2x2x1xf32>)
306
- func @pooling_nhwc_sum (%input: memref <1 x 6 x 6 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
306
+ func @pooling_nhwc_sum (%input: memref <1 x 4 x 4 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
307
307
linalg.pooling_nhwc_sum {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
308
- ins (%input , %fake: memref <1 x 6 x 6 x 1 x f32 >, memref <3 x3 xf32 >)
308
+ ins (%input , %fake: memref <1 x 4 x 4 x 1 x f32 >, memref <3 x3 xf32 >)
309
309
outs (%output: memref <1 x2 x2 x1 xf32 >)
310
310
return
311
311
}
@@ -316,15 +316,15 @@ func @pooling_nhwc_sum(%input: memref<1x6x6x1xf32>, %fake: memref<3x3xf32>, %out
316
316
// CHECK: %{{.+}} = linalg.pooling_nhwc_max
317
317
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
318
318
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
319
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x6x6x1xf32 >, tensor<3x3xf32>)
319
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x4x4x1xf32 >, tensor<3x3xf32>)
320
320
// CHECK-SAME: outs(%{{.+}} : tensor<1x2x2x1xf32>) -> tensor<1x2x2x1xf32>
321
- func @pooling_nhwc_max_tensor (%input: tensor <1 x 6 x 6 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
321
+ func @pooling_nhwc_max_tensor (%input: tensor <1 x 4 x 4 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
322
322
%fake = linalg.init_tensor [3 , 3 ] : tensor <3 x3 xf32 >
323
323
%init = linalg.init_tensor [1 , 2 , 2 , 1 ] : tensor <1 x2 x2 x1 xf32 >
324
324
%cst = constant 0.000000e+00 : f32
325
325
%fill = linalg.fill (%init , %cst ) : tensor <1 x2 x2 x1 xf32 >, f32 -> tensor <1 x2 x2 x1 xf32 >
326
326
%res = linalg.pooling_nhwc_max {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
327
- ins (%input , %fake: tensor <1 x 6 x 6 x 1 x f32 >, tensor <3 x3 xf32 >)
327
+ ins (%input , %fake: tensor <1 x 4 x 4 x 1 x f32 >, tensor <3 x3 xf32 >)
328
328
outs (%fill: tensor <1 x2 x2 x1 xf32 >) -> tensor <1 x2 x2 x1 xf32 >
329
329
return %res : tensor <1 x2 x2 x1 xf32 >
330
330
}
@@ -335,11 +335,11 @@ func @pooling_nhwc_max_tensor(%input: tensor<1x6x6x1xf32>) -> tensor<1x2x2x1xf32
335
335
// CHECK: linalg.pooling_nhwc_max
336
336
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
337
337
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
338
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x6x6x1xf32 >, memref<3x3xf32>)
338
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x4x4x1xf32 >, memref<3x3xf32>)
339
339
// CHECK-SAME: outs(%{{.+}} : memref<1x2x2x1xf32>)
340
- func @pooling_nhwc_max (%input: memref <1 x 6 x 6 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
340
+ func @pooling_nhwc_max (%input: memref <1 x 4 x 4 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
341
341
linalg.pooling_nhwc_max {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
342
- ins (%input , %fake: memref <1 x 6 x 6 x 1 x f32 >, memref <3 x3 xf32 >)
342
+ ins (%input , %fake: memref <1 x 4 x 4 x 1 x f32 >, memref <3 x3 xf32 >)
343
343
outs (%output: memref <1 x2 x2 x1 xf32 >)
344
344
return
345
345
}
@@ -350,15 +350,15 @@ func @pooling_nhwc_max(%input: memref<1x6x6x1xf32>, %fake: memref<3x3xf32>, %out
350
350
// CHECK: %{{.+}} = linalg.pooling_nhwc_min
351
351
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
352
352
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
353
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x6x6x1xf32 >, tensor<3x3xf32>)
353
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : tensor<1x4x4x1xf32 >, tensor<3x3xf32>)
354
354
// CHECK-SAME: outs(%{{.+}} : tensor<1x2x2x1xf32>) -> tensor<1x2x2x1xf32>
355
- func @pooling_nhwc_min_tensor (%input: tensor <1 x 6 x 6 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
355
+ func @pooling_nhwc_min_tensor (%input: tensor <1 x 4 x 4 x 1 x f32 >) -> tensor <1 x2 x2 x1 xf32 > {
356
356
%fake = linalg.init_tensor [3 , 3 ] : tensor <3 x3 xf32 >
357
357
%init = linalg.init_tensor [1 , 2 , 2 , 1 ] : tensor <1 x2 x2 x1 xf32 >
358
358
%cst = constant 0.000000e+00 : f32
359
359
%fill = linalg.fill (%init , %cst ) : tensor <1 x2 x2 x1 xf32 >, f32 -> tensor <1 x2 x2 x1 xf32 >
360
360
%res = linalg.pooling_nhwc_min {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
361
- ins (%input , %fake: tensor <1 x 6 x 6 x 1 x f32 >, tensor <3 x3 xf32 >)
361
+ ins (%input , %fake: tensor <1 x 4 x 4 x 1 x f32 >, tensor <3 x3 xf32 >)
362
362
outs (%fill: tensor <1 x2 x2 x1 xf32 >) -> tensor <1 x2 x2 x1 xf32 >
363
363
return %res : tensor <1 x2 x2 x1 xf32 >
364
364
}
@@ -369,11 +369,11 @@ func @pooling_nhwc_min_tensor(%input: tensor<1x6x6x1xf32>) -> tensor<1x2x2x1xf32
369
369
// CHECK: linalg.pooling_nhwc_min
370
370
// CHECK-SAME: dilations = dense<1> : tensor<2xi64>
371
371
// CHECK-SAME: strides = dense<1> : tensor<2xi64>
372
- // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x6x6x1xf32 >, memref<3x3xf32>)
372
+ // CHECK-SAME: ins(%{{.+}}, %{{.+}} : memref<1x4x4x1xf32 >, memref<3x3xf32>)
373
373
// CHECK-SAME: outs(%{{.+}} : memref<1x2x2x1xf32>)
374
- func @pooling_nhwc_min (%input: memref <1 x 6 x 6 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
374
+ func @pooling_nhwc_min (%input: memref <1 x 4 x 4 x 1 x f32 >, %fake: memref <3 x3 xf32 >, %output: memref <1 x2 x2 x1 xf32 >) {
375
375
linalg.pooling_nhwc_min {dilations = dense <1 > : tensor <2 xi64 >, strides = dense <1 > : tensor <2 xi64 >}
376
- ins (%input , %fake: memref <1 x 6 x 6 x 1 x f32 >, memref <3 x3 xf32 >)
376
+ ins (%input , %fake: memref <1 x 4 x 4 x 1 x f32 >, memref <3 x3 xf32 >)
377
377
outs (%output: memref <1 x2 x2 x1 xf32 >)
378
378
return
379
379
}
0 commit comments