File size: 19,874 Bytes
48ce895
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
{
  "op": "ai.onnx.MaxUnpool",
  "cases": [
    {
      "name": "dispatch_cliff_over_16m_elements",
      "attrs": { "kernel_shape": [1, 1], "strides": [1, 1] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4097, 4097] },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 1, 4097, 4097],
          "data": { "kind": "linspace", "start": 0, "end": 16785408 }
        }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4097, 4097], "tolerance": 0 } }
    },
    {
      "name": "without_output_shape_4x4_f32",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [5, 7, 13, 15] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } },
      "provenance": {
        "source": "cmake/external/onnx/onnx/backend/test/data/node/test_maxunpool_export_without_output_shape",
        "notes": "Official fixture indices are int64; this framework stores indices as uint32 slots."
      }
    },
    {
      "name": "f32_subnormal_payload_unique_indices",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnpoolWithoutOutputShape",
        "notes": "Same valid unique-index unpool pattern as the ORT/base fixture, but with finite subnormal payloads that must survive the scatter."
      },
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 2],
          "data": { "kind": "values", "values": [1e-40, -1e-40, 4e-39, -4e-39] }
        },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [0, 5, 10, 15] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "with_output_shape_5x5_f32",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [5.0, 6.0, 7.0, 8.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [5, 7, 13, 15] } },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 5, 5] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 5, 5], "tolerance": 0 } },
      "provenance": {
        "source": "cmake/external/onnx/onnx/backend/test/data/node/test_maxunpool_export_with_output_shape",
        "notes": "Official fixture indices and output_shape are int64; this framework stores them as uint32 slots."
      }
    },
    {
      "name": "multichannel_4x4_f32",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [6.0, 8.0, 14.0, 16.0, 22.0, 24.0, 30.0, 32.0] }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [5, 7, 13, 15, 21, 23, 29, 31] }
        }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 2, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "without_output_shape_4x4_f16",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.5, 2.5, 3.5, 4.5] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [0, 3, 12, 15] } }
      },
      "outputs": { "output": { "dtype": "float16", "shape": [1, 1, 4, 4], "tolerance": 0.001 } }
    },
    {
      "name": "ort_1d_with_output_shape",
      "attrs": { "kernel_shape": [2], "strides": [2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1, 3, 4, 6] } },
        "output_shape": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 8] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 8], "tolerance": 0 } },
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool1D"
      }
    },
    {
      "name": "ort_1d_with_output_shape_9_trailing_zero",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool1D_WithOutputShape"
      },
      "attrs": { "kernel_shape": [2], "strides": [2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1, 3, 4, 6] } },
        "output_shape": { "dtype": "uint32", "shape": [3], "data": { "kind": "values", "values": [1, 1, 9] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 9], "tolerance": 0 } }
    },
    {
      "name": "ort_1d_without_output_shape",
      "attrs": { "kernel_shape": [2], "strides": [2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1, 3, 4, 6] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 8], "tolerance": 0 } },
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool1D_Without_OutputShape"
      }
    },
    {
      "name": "ort_2d_with_output_shape_4x4_basic_indices",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool2D"
      },
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1, 3, 4, 6] } },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 4, 4] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_2d_without_output_shape_basic_indices",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool2D_Without_OutputShape"
      },
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1, 3, 4, 6] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_2d_padding",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2], "pads": [1, 1, 0, 0] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1, 3, 4, 6] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 3, 3], "tolerance": 0 } },
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool2D_Padding"
      }
    },
    {
      "name": "ort_3d_with_output_shape_center_value",
      "attrs": { "kernel_shape": [2, 2, 2], "strides": [2, 2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 1, 1, 1], "data": { "kind": "values", "values": [3.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 1, 1, 1], "data": { "kind": "values", "values": [13] } },
        "output_shape": { "dtype": "uint32", "shape": [5], "data": { "kind": "values", "values": [1, 1, 3, 3, 3] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 3, 3, 3], "tolerance": 0 } },
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool3D_WithOutputShape"
      }
    },
    {
      "name": "ort_3d_with_output_shape_full",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool3D"
      },
      "attrs": { "kernel_shape": [2, 2, 2], "strides": [2, 2, 2] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 1, 2, 2, 2],
          "data": { "kind": "values", "values": [1, 3, 24, 30, 32, 38, 60, 62] }
        },
        "output_shape": { "dtype": "uint32", "shape": [5], "data": { "kind": "values", "values": [1, 1, 4, 4, 4] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_default_strides_1d",
      "attrs": { "kernel_shape": [2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 4.0, 8.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1, 2, 3, 4] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 5], "tolerance": 0 } },
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnpool_DefaultStrides"
      }
    },
    {
      "name": "ort_1d_padding",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool1D_Padding"
      },
      "attrs": { "kernel_shape": [2], "strides": [2], "pads": [1, 0] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 4], "data": { "kind": "values", "values": [1, 3, 4, 6] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 7], "tolerance": 0 } }
    },
    {
      "name": "ort_2d_with_output_shape_5x5",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool2D_WithOutputShape"
      },
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1, 3, 10, 12] } },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 5, 5] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 5, 5], "tolerance": 0 } }
    },
    {
      "name": "ort_3d_without_output_shape_full",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool3D_Without_OutputShape"
      },
      "attrs": { "kernel_shape": [2, 2, 2], "strides": [2, 2, 2] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 1, 2, 2, 2],
          "data": { "kind": "values", "values": [1, 3, 24, 30, 32, 38, 60, 62] }
        }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 4, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_3d_padding",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/nn/unpool_op_test.cc",
        "test": "UnpoolTest.MaxUnPool3D_Padding"
      },
      "attrs": { "kernel_shape": [2, 2, 2], "strides": [2, 2, 2], "pads": [0, 1, 1, 0, 0, 0] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 1, 2, 2],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 1, 1, 2, 2],
          "data": { "kind": "values", "values": [1, 4, 8, 12] }
        }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 1, 2, 3, 3], "tolerance": 0 } }
    },
    {
      "name": "empty_input_zero_dim",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [0, 1, 2, 2], "data": { "kind": "values", "values": [] } },
        "indices": { "dtype": "uint32", "shape": [0, 1, 2, 2], "data": { "kind": "values", "values": [] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [0, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_caseB_empty",
      "attrs": { "kernel_shape": [2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 0], "data": { "kind": "values", "values": [] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 0], "data": { "kind": "values", "values": [] } }
      },
      "outputs": {
        "output": {
          "dtype": "float32",
          "shape": [1, 1, 1],
          "data": { "kind": "values", "values": [0.0] },
          "tolerance": 0.001
        }
      }
    },
    {
      "name": "segdecoder_f16_2ch_dense_2x_unpool",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": {
          "dtype": "float16",
          "shape": [1, 2, 4, 4],
          "data": {
            "kind": "values",
            "values": [-2.0, -1.75, -1.5, -1.25, -1.0, -0.75, -0.5, -0.25, 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, -2.0, -1.75, -1.5, -1.25, -1.0, -0.75, -0.5, -0.25, 0.0, 0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75]
          }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 2, 4, 4],
          "data": {
            "kind": "values",
            "values": [0, 2, 4, 6, 16, 18, 20, 22, 32, 34, 36, 38, 48, 50, 52, 54, 64, 66, 68, 70, 80, 82, 84, 86, 96, 98, 100, 102, 112, 114, 116, 118]
          }
        }
      },
      "outputs": { "output": { "dtype": "float16", "shape": [1, 2, 8, 8], "tolerance": 0.001 } }
    },
    {
      "name": "multichannel_3ch_with_output_shape_input_f32",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 3, 4, 4],
          "data": {
            "kind": "values",
            "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0, 31.0, 32.0, 33.0, 34.0, 35.0, 36.0, 37.0, 38.0, 39.0, 40.0, 41.0, 42.0, 43.0, 44.0, 45.0, 46.0, 47.0, 48.0]
          }
        },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 3, 4, 4],
          "data": {
            "kind": "values",
            "values": [0, 2, 4, 6, 16, 18, 20, 22, 32, 34, 36, 38, 48, 50, 52, 54, 64, 66, 68, 70, 80, 82, 84, 86, 96, 98, 100, 102, 112, 114, 116, 118, 128, 130, 132, 134, 144, 146, 148, 150, 160, 162, 164, 166, 176, 178, 180, 182]
          }
        },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 3, 8, 8] } }
      },
      "outputs": { "output": { "dtype": "float32", "shape": [1, 3, 8, 8], "tolerance": 0 } }
    },
    {
      "name": "f16_with_output_shape_input_nonpow2_5x5",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.5, 2.5, 3.5, 4.5] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [0, 2, 10, 24] } },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 5, 5] } }
      },
      "outputs": { "output": { "dtype": "float16", "shape": [1, 1, 5, 5], "tolerance": 0.001 } }
    },
    {
      "name": "oob_index_boundary_drop_f32",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [0, 15, 16, 7] } }
      },
      "outputs": {
        "output": {
          "dtype": "float32",
          "shape": [1, 1, 4, 4],
          "tolerance": 0,
          "data": {
            "kind": "values",
            "values": [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2.0]
          }
        }
      }
    },
    {
      "name": "output_shape_zero_spatial_dim",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 0, 2], "data": { "kind": "values", "values": [] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 0, 2], "data": { "kind": "values", "values": [] } },
        "output_shape": { "dtype": "uint32", "shape": [4], "data": { "kind": "values", "values": [1, 1, 0, 4] } }
      },
      "outputs": {
        "output": {
          "dtype": "float32",
          "shape": [1, 1, 0, 4],
          "tolerance": 0,
          "data": { "kind": "values", "values": [] }
        }
      }
    },
    {
      "name": "f16_index_at_last_valid_slot",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.5, 2.5, 3.5, 4.5] } },
        "indices": { "dtype": "uint32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [0, 8, 7, 15] } }
      },
      "outputs": {
        "output": {
          "dtype": "float16",
          "shape": [1, 1, 4, 4],
          "tolerance": 0,
          "data": {
            "kind": "values",
            "values": [1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 3.5, 2.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 4.5]
          }
        }
      }
    },
    {
      "name": "all_indices_oob_output_all_zeros",
      "attrs": { "kernel_shape": [2, 2], "strides": [2, 2] },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "indices": {
          "dtype": "uint32",
          "shape": [1, 1, 2, 2],
          "data": { "kind": "values", "values": [16, 17, 18, 19] }
        }
      },
      "outputs": {
        "output": {
          "dtype": "float32",
          "shape": [1, 1, 4, 4],
          "tolerance": 0,
          "data": {
            "kind": "values",
            "values": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
          }
        }
      }
    }
  ]
}