/packages/modules/NeuralNetworks/runtime/test/specs/V1_2/ |
D | concat_zero_sized.mod.py | 31 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 32 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 36 model = model.Operation("CONCATENATION", zero_sized, zero_sized, 3).To(o3) 44 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 70 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 71 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 76 model = model.Operation("CONCATENATION", zero_sized, i2, 0).To(o3) 84 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128),
|
D | resize_bilinear_v1_2.mod.py | 104 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 105 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 109 model = model.Operation("RESIZE_BILINEAR", zero_sized, 3, 3, layout).To(o3) 117 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 126 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16") 142 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 143 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 147 model = model.Operation("RESIZE_BILINEAR", zero_sized, 1.6, 1.6, layout).To(o3) 155 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 164 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | l2_pool_v1_2.mod.py | 68 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 69 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 73 model = model.Operation("L2_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 80 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", "float16") 96 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 97 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 101 model = model.Operation("L2_POOL_2D", zero_sized, 1, 1, 1, 2, 2, 0, layout).To(o3) 108 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", "float16")
|
D | max_pool_v1_2.mod.py | 124 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 125 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 129 model = model.Operation("MAX_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 137 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 146 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16") 162 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 163 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 167 model = model.Operation("MAX_POOL_2D", zero_sized, 1, 1, 1, 2, 2, 0, layout).To(o3) 175 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 184 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | avg_pool_v1_2.mod.py | 154 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 155 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 159 model = model.Operation("AVERAGE_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 167 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 176 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16") 192 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 193 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 197 model = model.Operation("AVERAGE_POOL_2D", zero_sized, 1, 1, 1, 2, 2, 0, layout).To(o3) 205 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 214 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | transpose_conv2d.mod.py | 191 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 192 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 199 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, s, 2, 2, 2, 0, layout).To(o3) 207 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 218 }).AddNchw(i1, zero_sized, o3, s, layout).AddVariations("relaxed", quant8, "float16") 234 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 4, 4, 1}") variable 235 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 4, 4, 2.0, 2.0, 4, 4, layout).To(zero_sized) 241 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, 1, 2, 2, 1, 1, 1, 0, layout).To(o3) 249 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 260 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | resize_nearest_neighbor.mod.py | 202 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 203 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 207 model = model.Operation("RESIZE_NEAREST_NEIGHBOR", zero_sized, 3, 3, layout).To(o3) 215 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 224 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16") 240 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 241 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 245 model = model.Operation("RESIZE_NEAREST_NEIGHBOR", zero_sized, 1.6, 1.6, layout).To(o3) 253 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 262 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | conv2d_v1_2.mod.py | 227 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 228 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 234 model = model.Operation("CONV_2D", zero_sized, w, b, 0, 0, 0, 0, 1, 1, 0, layout).To(o3) 242 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 253 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16") 269 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 270 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 276 model = model.Operation("CONV_2D", zero_sized, w, b, 1, 1, 1, 0, layout).To(o3) 284 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 295 }).AddNchw(i1, zero_sized, o3, layout).AddVariations("relaxed", quant8, "float16")
|
D | fully_connected_v1_2.mod.py | 63 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 3}") variable 64 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 70 model = model.Operation("FULLY_CONNECTED", zero_sized, w, b, 0).To(o3) 78 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128), 89 }).AddNchw(i1, zero_sized, layout).AddVariations("relaxed", quant8, "float16")
|
D | transpose_v1_2.mod.py | 62 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 63 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 67 model = model.Operation("TRANSPOSE", zero_sized, [0, 3, 1, 2]).To(o3) 75 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128),
|
D | roi_align.mod.py | 227 zero_sized = Output("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 228 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 236 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128) 243 zero_sized: [], 244 }).AddNchw(i1, zero_sized, layout).AddVariations("relaxed", quant8, "float16")
|
D | conv2d_per_channel.mod.py | 58 zero_sized = Internal("featureMap", "TENSOR_QUANT8_ASYMM", "{0, 2, 2, 2}, 0.5f, 128") variable 59 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 66 model = model.Operation("CONV_2D", zero_sized, w, b, 0, 0, 0, 0, 1, 1, 0, layout).To(o3) 73 }).AddNchw(i1, zero_sized, o3, layout)
|
D | mul_v1_2.mod.py | 74 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 2}") variable 75 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 80 model = model.Operation("MUL", zero_sized, i2, 0).To(o3) 88 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128),
|
D | tanh_v1_2.mod.py | 68 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 69 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 73 model = model.Operation("TANH", zero_sized).To(o3) 81 zero_sized: ("TENSOR_QUANT8_ASYMM", 0.1, 128),
|
/packages/modules/NeuralNetworks/runtime/test/specs/V1_3/ |
D | resize_quant8_signed.mod.py | 104 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 105 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 109 model = model.Operation("RESIZE_BILINEAR", zero_sized, 3, 3, layout).To(o3) 117 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 126 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) 142 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 143 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 147 model = model.Operation("RESIZE_BILINEAR", zero_sized, 1.6, 1.6, layout).To(o3) 155 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 164 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) [all …]
|
D | transpose_quant8_signed.mod.py | 227 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 228 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 235 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, s, 2, 2, 2, 0, layout).To(o3) 243 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 254 }).AddNchw(i1, zero_sized, o3, s, layout).AddVariations(quant8_signed, includeDefault=False) 270 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 4, 4, 1}") variable 271 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 4, 4, 2.0, 2.0, 4, 4, layout).To(zero_sized) 277 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, 1, 2, 2, 1, 1, 1, 0, layout).To(o3) 285 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 296 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) [all …]
|
D | concat_quant8_signed.mod.py | 151 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 152 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 156 model = model.Operation("CONCATENATION", zero_sized, zero_sized, 3).To(o3) 164 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 191 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 192 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 197 model = model.Operation("CONCATENATION", zero_sized, i2, 0).To(o3) 205 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0),
|
D | transpose_conv2d_quant8_signed.mod.py | 226 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 227 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 234 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, s, 2, 2, 2, 0, layout).To(o3) 242 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 253 }).AddNchw(i1, zero_sized, o3, s, layout).AddVariations(quant8_signed, includeDefault=False) 269 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 4, 4, 1}") variable 270 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 4, 4, 2.0, 2.0, 4, 4, layout).To(zero_sized) 276 model = model.Operation("TRANSPOSE_CONV_2D", zero_sized, w, b, 1, 2, 2, 1, 1, 1, 0, layout).To(o3) 284 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 295 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False)
|
D | max_pool_quant8_signed.mod.py | 240 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 241 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 245 model = model.Operation("MAX_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 253 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 262 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) 279 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 280 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 284 model = model.Operation("MAX_POOL_2D", zero_sized, 1, 1, 1, 2, 2, 0, layout).To(o3) 292 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 301 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False)
|
D | conv2d_quant8_signed.mod.py | 190 zero_sized = Internal("featureMap", "TENSOR_QUANT8_ASYMM_SIGNED", "{0, 2, 2, 2}, 0.5f, 0") variable 191 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 198 model = model.Operation("CONV_2D", zero_sized, w, b, 0, 0, 0, 0, 1, 1, 0, layout).To(o3) 205 }).AddNchw(i1, zero_sized, o3, layout) 365 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 366 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 372 model = model.Operation("CONV_2D", zero_sized, w, b, 0, 0, 0, 0, 1, 1, 0, layout).To(o3) 380 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 391 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) 407 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable [all …]
|
D | avg_pool_quant8_signed.mod.py | 288 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 289 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 293 model = model.Operation("AVERAGE_POOL_2D", zero_sized, 0, 0, 0, 0, 1, 1, 2, 2, 0, layout).To(o3) 301 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 310 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False) 327 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 328 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 332 model = model.Operation("AVERAGE_POOL_2D", zero_sized, 1, 1, 1, 2, 2, 0, layout).To(o3) 340 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0), 349 }).AddNchw(i1, zero_sized, o3, layout).AddVariations(quant8_signed, includeDefault=False)
|
D | slice_quant8_signed.mod.py | 56 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 58 layout).To(zero_sized) 62 model = model.Operation("SLICE", zero_sized, [0, 1, 1, 0], 71 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0),
|
D | roi_align_quant8_signed.mod.py | 227 zero_sized = Output("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 228 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 236 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0) 243 zero_sized: [], 244 }).AddNchw(i1, zero_sized, layout).AddVariations(quant8_signed, includeDefault=False)
|
D | tanh_quant8_signed.mod.py | 53 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 1}") variable 54 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 58 model = model.Operation("TANH", zero_sized).To(o3) 66 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0),
|
D | add_quant8_signed.mod.py | 72 zero_sized = Internal("featureMap", "TENSOR_FLOAT32", "{0, 2, 2, 2}") variable 73 model = model.Operation("ROI_ALIGN", i1, tmp1, tmp2, 2, 2, 2.0, 2.0, 4, 4, layout).To(zero_sized) 78 model = model.Operation("ADD", zero_sized, i2, 0).To(o3) 86 zero_sized: ("TENSOR_QUANT8_ASYMM_SIGNED", 0.1, 0),
|