File size: 19,188 Bytes
50c1187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
{
  "op": "ai.onnx.Upsample",
  "cases": [
    {
      "name": "nearest_2x_f32",
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "nearest_2x_nonsquare_f32",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 3],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0 } }
    },
    {
      "name": "linear_2x_nonsquare_f32",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 3],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0.000001 } }
    },
    {
      "name": "nearest_3x_multichannel_f32",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 3.0, 3.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 6, 6], "tolerance": 0 } }
    },
    {
      "name": "nearest_2x_f16",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float16", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 1, 4, 4], "tolerance": 0.001 } }
    },
    {
      "name": "ort_nearest_non_integer_width_scale",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearest15XTest"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 1.5] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 4, 3], "tolerance": 0 } }
    },
    {
      "name": "ort_linear_4d_nchw_scale_2x4",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOp4DBilinearTest"
      },
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [2, 1, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 4.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [2, 1, 4, 8], "tolerance": 0.000001 } }
    },
    {
      "name": "ort_nearest_2x_nchw_two_channels",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearest2XTest"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_2x3_nchw_two_channels",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearestTest"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 3.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 4, 6], "tolerance": 0 } }
    },
    {
      "name": "ort_linear_4d_noop_scales",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOp4DBilinearTest_ScalesNoOp"
      },
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [2, 1, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 1.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [2, 1, 2, 2], "tolerance": 0.000001 } }
    },
    {
      "name": "ort_nearest_4d_noop_scales",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearestTest_NoScale"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 1.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 2, 2], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_batch_height_width_scale",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearest222XTest"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [2.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [2, 2, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_nhwc_axis_scaling",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.NhwcUpsampleOpNearestTest"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0, 3.0, 5.0, 7.0, 9.0] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 1.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 4, 6, 2], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_int32_nchw_2x3",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearestTest_int32"
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "int32",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1, 3, 3, 5, 3, 5, 7, 9] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 3.0] } }
      },
      "outputs": { "y": { "dtype": "int32", "shape": [1, 2, 4, 6], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_uint8_nchw_2x3",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearestTest_uint8",
        "notes": "ONNX uint8 is represented as one logical value per 32-bit fixture slot."
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "uint8",
          "shape": [1, 2, 2, 2],
          "data": { "kind": "values", "values": [1, 3, 3, 5, 3, 5, 7, 9] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 3.0] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [1, 2, 4, 6], "tolerance": 0 } }
    },
    {
      "name": "nearest_int8_negative_values_2x",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "int8", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [-8, 3, 7, -1] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": {
        "y": {
          "dtype": "int8",
          "shape": [1, 1, 4, 4],
          "tolerance": 0,
          "data": { "kind": "values", "values": [-8, -8, 3, 3, -8, -8, 3, 3, 7, 7, -1, -1, 7, 7, -1, -1] }
        }
      },
      "provenance": {
        "notes": "Synthetic signed-int8 nearest-neighbor witness. Negative and positive values prove the widened i32 load/store route preserves logical int8 values instead of treating them as uint8."
      }
    },
    {
      "name": "onnx_backend_nearest_2x3_f32",
      "provenance": { "source": "cmake/external/onnx/onnx/backend/test/data/node/test_upsample_nearest" },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 3.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 4, 6], "tolerance": 0 } }
    },
    {
      "name": "ort_nearest_rank1_2x",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOpNearestTest_1D",
        "notes": "Deprecated Upsample nearest is rank-generic."
      },
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [5], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0, 5.0] } },
        "scales": { "dtype": "float32", "shape": [1], "data": { "kind": "values", "values": [2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [10], "tolerance": 0 } }
    },
    {
      "name": "ort_linear_rank2_2x4",
      "provenance": {
        "source": "onnxruntime/test/providers/cpu/tensor/upsample_op_test.cc",
        "test": "UpsampleOpTest.UpsampleOp2DBilinearTest",
        "notes": "Deprecated Upsample linear accepts rank-2 inputs."
      },
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [2, 2], "data": { "kind": "values", "values": [1.0, 3.0, 3.0, 5.0] } },
        "scales": { "dtype": "float32", "shape": [2], "data": { "kind": "values", "values": [2.0, 4.0] } }
      },
      "outputs": {
        "y": {
          "dtype": "float32",
          "shape": [4, 8],
          "data": {
            "kind": "values",
            "values": [1.0, 1.5, 2.0, 2.5, 3.0, 3.0, 3.0, 3.0, 2.0, 2.5, 3.0, 3.5, 4.0, 4.0, 4.0, 4.0, 3.0, 3.5, 4.0, 4.5, 5.0, 5.0, 5.0, 5.0, 3.0, 3.5, 4.0, 4.5, 5.0, 5.0, 5.0, 5.0]
          },
          "tolerance": 0
        }
      }
    },
    {
      "name": "nearest_4x_integer_scale_vec4",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 2, 2], "data": { "kind": "values", "values": [1.0, 2.0, 3.0, 4.0] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 4.0, 4.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 8, 8], "tolerance": 0 } }
    },
    {
      "name": "nearest_2x_larger_grid",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 32, 32],
          "data": { "kind": "fillFloat32", "sinStep": 0.13, "cosStep": 0.29 }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 64, 64], "tolerance": 0 } }
    },
    {
      "name": "linear_2x_stencil_multichannel",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 2, 8, 12],
          "data": { "kind": "fillFloat32", "sinStep": 0.21, "cosStep": 0.33 }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 2, 16, 24] } }
    },
    {
      "name": "empty_zero_dim",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [0, 1, 2, 2], "data": { "kind": "values", "values": [] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [0, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "empty_zero_dim_f16",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float16", "shape": [0, 1, 2, 2], "data": { "kind": "values", "values": [] } },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [0, 1, 4, 4], "tolerance": 0 } }
    },
    {
      "name": "linear_2x_f16_featuremap",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float16",
          "shape": [1, 16, 32, 32],
          "data": { "kind": "fillFloat32", "sinStep": 0.17, "cosStep": 0.31 }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 16, 64, 64], "tolerance": 0.02 } }
    },
    {
      "name": "nearest_1point5x_f16_scalar_fallback",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float16",
          "shape": [1, 8, 30, 30],
          "data": { "kind": "fillFloat32", "sinStep": 0.23, "cosStep": 0.19 }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 1.5, 1.5] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 8, 45, 45], "tolerance": 0.01 } }
    },
    {
      "name": "linear_nonint_f16_scalar_fallback",
      "attrs": { "mode": "linear" },
      "inputs": {
        "x": {
          "dtype": "float16",
          "shape": [1, 4, 28, 26],
          "data": { "kind": "fillFloat32", "sinStep": 0.29, "cosStep": 0.13 }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 1.5, 1.5] } }
      },
      "outputs": { "y": { "dtype": "float16", "shape": [1, 4, 42, 39], "tolerance": 0.02 } }
    },
    {
      "name": "nearest_noninteger_wscale_scales_input_ignored_vec4",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 1, 2], "data": { "kind": "values", "values": [10.0, 20.0] } },
        "scales": {
          "dtype": "float32",
          "shape": [4],
          "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 2.3333333] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 4], "tolerance": 0 } }
    },
    {
      "name": "nearest_noninteger_wscale_scales_input_ignored_scalar",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 1, 2], "data": { "kind": "values", "values": [10.0, 20.0] } },
        "scales": {
          "dtype": "float32",
          "shape": [4],
          "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 3.3333333] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 6], "tolerance": 0 } }
    },
    {
      "name": "nearest_rank5_noninteger_scale_generic_ignored",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": { "dtype": "float32", "shape": [1, 1, 1, 1, 2], "data": { "kind": "values", "values": [10.0, 20.0] } },
        "scales": {
          "dtype": "float32",
          "shape": [5],
          "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 1.0, 2.3333333] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 1, 1, 4], "tolerance": 0 } }
    },
    {
      "name": "nearest_2x_uint8_vec4_store",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "uint8",
          "shape": [1, 1, 2, 4],
          "data": { "kind": "values", "values": [1, 2, 3, 4, 5, 6, 7, 8] }
        },
        "scales": { "dtype": "float32", "shape": [4], "data": { "kind": "values", "values": [1.0, 1.0, 2.0, 2.0] } }
      },
      "outputs": { "y": { "dtype": "uint8", "shape": [1, 1, 4, 8], "tolerance": 0 } }
    },
    {
      "name": "rank7_nearest_last_axis",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 1, 2, 1, 3],
          "data": { "kind": "linspace", "start": 0.0, "end": 11.0 }
        },
        "scales": {
          "dtype": "float32",
          "shape": [7],
          "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 2, 1, 2, 1, 6], "tolerance": 0 } }
    },
    {
      "name": "rank8_nearest_last_axis",
      "attrs": { "mode": "nearest" },
      "inputs": {
        "x": {
          "dtype": "float32",
          "shape": [1, 1, 2, 1, 2, 1, 2, 3],
          "data": { "kind": "linspace", "start": 1.0, "end": 24.0 }
        },
        "scales": {
          "dtype": "float32",
          "shape": [8],
          "data": { "kind": "values", "values": [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 2.0] }
        }
      },
      "outputs": { "y": { "dtype": "float32", "shape": [1, 1, 2, 1, 2, 1, 2, 6], "tolerance": 0 } }
    }
  ]
}