| 1 | // Copyright 2020 Google LLC |
| 2 | // |
| 3 | // This source code is licensed under the BSD-style license found in the |
| 4 | // LICENSE file in the root directory of this source tree. |
| 5 | // |
| 6 | // Auto-generated file. Do not edit! |
| 7 | |
| 8 | #include "xnnpack.h" |
| 9 | |
| 10 | #include <algorithm> |
| 11 | #include <array> |
| 12 | #include <cstddef> |
| 13 | #include <cstdint> |
| 14 | #include <functional> |
| 15 | #include <iostream> |
| 16 | #include <limits> |
| 17 | #include <random> |
| 18 | |
| 19 | #include "xnnpack.h" |
| 20 | |
| 21 | // align a size up to XNN_EXTRA_BYTES |
| 22 | #define XNN_PAD_EXTRA_BYTES(s, t) (((s) + XNN_EXTRA_BYTES / sizeof(t) - 1) & ~(XNN_EXTRA_BYTES / sizeof(t) - 1)) |
| 23 | |
| 24 | namespace models { |
| 25 | |
| 26 | xnn_subgraph_t FP32MobileNetV2() { |
| 27 | xnn_status status; |
| 28 | xnn_subgraph_t subgraph = nullptr; |
| 29 | status = xnn_create_subgraph(/*num_external_values=*/2, 0, &subgraph); |
| 30 | if (status != xnn_status_success) { |
| 31 | std::cerr << "failed to create subgrpah" << std::endl; |
| 32 | return nullptr; |
| 33 | } |
| 34 | |
| 35 | std::random_device random_device; |
| 36 | auto rng = std::mt19937(random_device()); |
| 37 | |
| 38 | uint32_t v0 = XNN_INVALID_VALUE_ID; |
| 39 | std::array<size_t, 4> v0_dims = {{1, 224, 224, 3}}; |
| 40 | status = xnn_define_tensor_value( |
| 41 | subgraph, xnn_datatype_fp32, |
| 42 | v0_dims.size(), v0_dims.data(), |
| 43 | /*data=*/nullptr, |
| 44 | 0, XNN_VALUE_FLAG_EXTERNAL_INPUT, &v0); |
| 45 | if (status != xnn_status_success) { |
| 46 | std::cerr << "failed to create tensor v0" << std::endl; |
| 47 | return nullptr; |
| 48 | } |
| 49 | |
| 50 | uint32_t v1 = XNN_INVALID_VALUE_ID; |
| 51 | std::array<size_t, 4> v1_dims = {{1, 112, 112, 32}}; |
| 52 | status = xnn_define_tensor_value( |
| 53 | subgraph, xnn_datatype_fp32, |
| 54 | v1_dims.size(), v1_dims.data(), |
| 55 | /*data=*/nullptr, |
| 56 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v1); |
| 57 | if (status != xnn_status_success) { |
| 58 | std::cerr << "failed to create tensor v1" << std::endl; |
| 59 | return nullptr; |
| 60 | } |
| 61 | |
| 62 | uint32_t v2 = XNN_INVALID_VALUE_ID; |
| 63 | std::array<size_t, 4> v2_dims = {{1, 112, 112, 32}}; |
| 64 | status = xnn_define_tensor_value( |
| 65 | subgraph, xnn_datatype_fp32, |
| 66 | v2_dims.size(), v2_dims.data(), |
| 67 | /*data=*/nullptr, |
| 68 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v2); |
| 69 | if (status != xnn_status_success) { |
| 70 | std::cerr << "failed to create tensor v2" << std::endl; |
| 71 | return nullptr; |
| 72 | } |
| 73 | |
| 74 | uint32_t v3 = XNN_INVALID_VALUE_ID; |
| 75 | std::array<size_t, 4> v3_dims = {{1, 112, 112, 16}}; |
| 76 | status = xnn_define_tensor_value( |
| 77 | subgraph, xnn_datatype_fp32, |
| 78 | v3_dims.size(), v3_dims.data(), |
| 79 | /*data=*/nullptr, |
| 80 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v3); |
| 81 | if (status != xnn_status_success) { |
| 82 | std::cerr << "failed to create tensor v3" << std::endl; |
| 83 | return nullptr; |
| 84 | } |
| 85 | |
| 86 | uint32_t v4 = XNN_INVALID_VALUE_ID; |
| 87 | std::array<size_t, 4> v4_dims = {{1, 112, 112, 96}}; |
| 88 | status = xnn_define_tensor_value( |
| 89 | subgraph, xnn_datatype_fp32, |
| 90 | v4_dims.size(), v4_dims.data(), |
| 91 | /*data=*/nullptr, |
| 92 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v4); |
| 93 | if (status != xnn_status_success) { |
| 94 | std::cerr << "failed to create tensor v4" << std::endl; |
| 95 | return nullptr; |
| 96 | } |
| 97 | |
| 98 | uint32_t v5 = XNN_INVALID_VALUE_ID; |
| 99 | std::array<size_t, 4> v5_dims = {{1, 56, 56, 96}}; |
| 100 | status = xnn_define_tensor_value( |
| 101 | subgraph, xnn_datatype_fp32, |
| 102 | v5_dims.size(), v5_dims.data(), |
| 103 | /*data=*/nullptr, |
| 104 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v5); |
| 105 | if (status != xnn_status_success) { |
| 106 | std::cerr << "failed to create tensor v5" << std::endl; |
| 107 | return nullptr; |
| 108 | } |
| 109 | |
| 110 | uint32_t v6 = XNN_INVALID_VALUE_ID; |
| 111 | std::array<size_t, 4> v6_dims = {{1, 56, 56, 24}}; |
| 112 | status = xnn_define_tensor_value( |
| 113 | subgraph, xnn_datatype_fp32, |
| 114 | v6_dims.size(), v6_dims.data(), |
| 115 | /*data=*/nullptr, |
| 116 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v6); |
| 117 | if (status != xnn_status_success) { |
| 118 | std::cerr << "failed to create tensor v6" << std::endl; |
| 119 | return nullptr; |
| 120 | } |
| 121 | |
| 122 | uint32_t v7 = XNN_INVALID_VALUE_ID; |
| 123 | std::array<size_t, 4> v7_dims = {{1, 56, 56, 144}}; |
| 124 | status = xnn_define_tensor_value( |
| 125 | subgraph, xnn_datatype_fp32, |
| 126 | v7_dims.size(), v7_dims.data(), |
| 127 | /*data=*/nullptr, |
| 128 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v7); |
| 129 | if (status != xnn_status_success) { |
| 130 | std::cerr << "failed to create tensor v7" << std::endl; |
| 131 | return nullptr; |
| 132 | } |
| 133 | |
| 134 | uint32_t v8 = XNN_INVALID_VALUE_ID; |
| 135 | std::array<size_t, 4> v8_dims = {{1, 56, 56, 144}}; |
| 136 | status = xnn_define_tensor_value( |
| 137 | subgraph, xnn_datatype_fp32, |
| 138 | v8_dims.size(), v8_dims.data(), |
| 139 | /*data=*/nullptr, |
| 140 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v8); |
| 141 | if (status != xnn_status_success) { |
| 142 | std::cerr << "failed to create tensor v8" << std::endl; |
| 143 | return nullptr; |
| 144 | } |
| 145 | |
| 146 | uint32_t v9 = XNN_INVALID_VALUE_ID; |
| 147 | std::array<size_t, 4> v9_dims = {{1, 56, 56, 24}}; |
| 148 | status = xnn_define_tensor_value( |
| 149 | subgraph, xnn_datatype_fp32, |
| 150 | v9_dims.size(), v9_dims.data(), |
| 151 | /*data=*/nullptr, |
| 152 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v9); |
| 153 | if (status != xnn_status_success) { |
| 154 | std::cerr << "failed to create tensor v9" << std::endl; |
| 155 | return nullptr; |
| 156 | } |
| 157 | |
| 158 | uint32_t v10 = XNN_INVALID_VALUE_ID; |
| 159 | std::array<size_t, 4> v10_dims = {{1, 56, 56, 24}}; |
| 160 | status = xnn_define_tensor_value( |
| 161 | subgraph, xnn_datatype_fp32, |
| 162 | v10_dims.size(), v10_dims.data(), |
| 163 | /*data=*/nullptr, |
| 164 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v10); |
| 165 | if (status != xnn_status_success) { |
| 166 | std::cerr << "failed to create tensor v10" << std::endl; |
| 167 | return nullptr; |
| 168 | } |
| 169 | |
| 170 | uint32_t v11 = XNN_INVALID_VALUE_ID; |
| 171 | std::array<size_t, 4> v11_dims = {{1, 56, 56, 144}}; |
| 172 | status = xnn_define_tensor_value( |
| 173 | subgraph, xnn_datatype_fp32, |
| 174 | v11_dims.size(), v11_dims.data(), |
| 175 | /*data=*/nullptr, |
| 176 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v11); |
| 177 | if (status != xnn_status_success) { |
| 178 | std::cerr << "failed to create tensor v11" << std::endl; |
| 179 | return nullptr; |
| 180 | } |
| 181 | |
| 182 | uint32_t v12 = XNN_INVALID_VALUE_ID; |
| 183 | std::array<size_t, 4> v12_dims = {{1, 28, 28, 144}}; |
| 184 | status = xnn_define_tensor_value( |
| 185 | subgraph, xnn_datatype_fp32, |
| 186 | v12_dims.size(), v12_dims.data(), |
| 187 | /*data=*/nullptr, |
| 188 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v12); |
| 189 | if (status != xnn_status_success) { |
| 190 | std::cerr << "failed to create tensor v12" << std::endl; |
| 191 | return nullptr; |
| 192 | } |
| 193 | |
| 194 | uint32_t v13 = XNN_INVALID_VALUE_ID; |
| 195 | std::array<size_t, 4> v13_dims = {{1, 28, 28, 32}}; |
| 196 | status = xnn_define_tensor_value( |
| 197 | subgraph, xnn_datatype_fp32, |
| 198 | v13_dims.size(), v13_dims.data(), |
| 199 | /*data=*/nullptr, |
| 200 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v13); |
| 201 | if (status != xnn_status_success) { |
| 202 | std::cerr << "failed to create tensor v13" << std::endl; |
| 203 | return nullptr; |
| 204 | } |
| 205 | |
| 206 | uint32_t v14 = XNN_INVALID_VALUE_ID; |
| 207 | std::array<size_t, 4> v14_dims = {{1, 28, 28, 192}}; |
| 208 | status = xnn_define_tensor_value( |
| 209 | subgraph, xnn_datatype_fp32, |
| 210 | v14_dims.size(), v14_dims.data(), |
| 211 | /*data=*/nullptr, |
| 212 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v14); |
| 213 | if (status != xnn_status_success) { |
| 214 | std::cerr << "failed to create tensor v14" << std::endl; |
| 215 | return nullptr; |
| 216 | } |
| 217 | |
| 218 | uint32_t v15 = XNN_INVALID_VALUE_ID; |
| 219 | std::array<size_t, 4> v15_dims = {{1, 28, 28, 192}}; |
| 220 | status = xnn_define_tensor_value( |
| 221 | subgraph, xnn_datatype_fp32, |
| 222 | v15_dims.size(), v15_dims.data(), |
| 223 | /*data=*/nullptr, |
| 224 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v15); |
| 225 | if (status != xnn_status_success) { |
| 226 | std::cerr << "failed to create tensor v15" << std::endl; |
| 227 | return nullptr; |
| 228 | } |
| 229 | |
| 230 | uint32_t v16 = XNN_INVALID_VALUE_ID; |
| 231 | std::array<size_t, 4> v16_dims = {{1, 28, 28, 32}}; |
| 232 | status = xnn_define_tensor_value( |
| 233 | subgraph, xnn_datatype_fp32, |
| 234 | v16_dims.size(), v16_dims.data(), |
| 235 | /*data=*/nullptr, |
| 236 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v16); |
| 237 | if (status != xnn_status_success) { |
| 238 | std::cerr << "failed to create tensor v16" << std::endl; |
| 239 | return nullptr; |
| 240 | } |
| 241 | |
| 242 | uint32_t v17 = XNN_INVALID_VALUE_ID; |
| 243 | std::array<size_t, 4> v17_dims = {{1, 28, 28, 32}}; |
| 244 | status = xnn_define_tensor_value( |
| 245 | subgraph, xnn_datatype_fp32, |
| 246 | v17_dims.size(), v17_dims.data(), |
| 247 | /*data=*/nullptr, |
| 248 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v17); |
| 249 | if (status != xnn_status_success) { |
| 250 | std::cerr << "failed to create tensor v17" << std::endl; |
| 251 | return nullptr; |
| 252 | } |
| 253 | |
| 254 | uint32_t v18 = XNN_INVALID_VALUE_ID; |
| 255 | std::array<size_t, 4> v18_dims = {{1, 28, 28, 192}}; |
| 256 | status = xnn_define_tensor_value( |
| 257 | subgraph, xnn_datatype_fp32, |
| 258 | v18_dims.size(), v18_dims.data(), |
| 259 | /*data=*/nullptr, |
| 260 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v18); |
| 261 | if (status != xnn_status_success) { |
| 262 | std::cerr << "failed to create tensor v18" << std::endl; |
| 263 | return nullptr; |
| 264 | } |
| 265 | |
| 266 | uint32_t v19 = XNN_INVALID_VALUE_ID; |
| 267 | std::array<size_t, 4> v19_dims = {{1, 28, 28, 192}}; |
| 268 | status = xnn_define_tensor_value( |
| 269 | subgraph, xnn_datatype_fp32, |
| 270 | v19_dims.size(), v19_dims.data(), |
| 271 | /*data=*/nullptr, |
| 272 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v19); |
| 273 | if (status != xnn_status_success) { |
| 274 | std::cerr << "failed to create tensor v19" << std::endl; |
| 275 | return nullptr; |
| 276 | } |
| 277 | |
| 278 | uint32_t v20 = XNN_INVALID_VALUE_ID; |
| 279 | std::array<size_t, 4> v20_dims = {{1, 28, 28, 32}}; |
| 280 | status = xnn_define_tensor_value( |
| 281 | subgraph, xnn_datatype_fp32, |
| 282 | v20_dims.size(), v20_dims.data(), |
| 283 | /*data=*/nullptr, |
| 284 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v20); |
| 285 | if (status != xnn_status_success) { |
| 286 | std::cerr << "failed to create tensor v20" << std::endl; |
| 287 | return nullptr; |
| 288 | } |
| 289 | |
| 290 | uint32_t v21 = XNN_INVALID_VALUE_ID; |
| 291 | std::array<size_t, 4> v21_dims = {{1, 28, 28, 32}}; |
| 292 | status = xnn_define_tensor_value( |
| 293 | subgraph, xnn_datatype_fp32, |
| 294 | v21_dims.size(), v21_dims.data(), |
| 295 | /*data=*/nullptr, |
| 296 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v21); |
| 297 | if (status != xnn_status_success) { |
| 298 | std::cerr << "failed to create tensor v21" << std::endl; |
| 299 | return nullptr; |
| 300 | } |
| 301 | |
| 302 | uint32_t v22 = XNN_INVALID_VALUE_ID; |
| 303 | std::array<size_t, 4> v22_dims = {{1, 28, 28, 192}}; |
| 304 | status = xnn_define_tensor_value( |
| 305 | subgraph, xnn_datatype_fp32, |
| 306 | v22_dims.size(), v22_dims.data(), |
| 307 | /*data=*/nullptr, |
| 308 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v22); |
| 309 | if (status != xnn_status_success) { |
| 310 | std::cerr << "failed to create tensor v22" << std::endl; |
| 311 | return nullptr; |
| 312 | } |
| 313 | |
| 314 | uint32_t v23 = XNN_INVALID_VALUE_ID; |
| 315 | std::array<size_t, 4> v23_dims = {{1, 14, 14, 192}}; |
| 316 | status = xnn_define_tensor_value( |
| 317 | subgraph, xnn_datatype_fp32, |
| 318 | v23_dims.size(), v23_dims.data(), |
| 319 | /*data=*/nullptr, |
| 320 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v23); |
| 321 | if (status != xnn_status_success) { |
| 322 | std::cerr << "failed to create tensor v23" << std::endl; |
| 323 | return nullptr; |
| 324 | } |
| 325 | |
| 326 | uint32_t v24 = XNN_INVALID_VALUE_ID; |
| 327 | std::array<size_t, 4> v24_dims = {{1, 14, 14, 64}}; |
| 328 | status = xnn_define_tensor_value( |
| 329 | subgraph, xnn_datatype_fp32, |
| 330 | v24_dims.size(), v24_dims.data(), |
| 331 | /*data=*/nullptr, |
| 332 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v24); |
| 333 | if (status != xnn_status_success) { |
| 334 | std::cerr << "failed to create tensor v24" << std::endl; |
| 335 | return nullptr; |
| 336 | } |
| 337 | |
| 338 | uint32_t v25 = XNN_INVALID_VALUE_ID; |
| 339 | std::array<size_t, 4> v25_dims = {{1, 14, 14, 384}}; |
| 340 | status = xnn_define_tensor_value( |
| 341 | subgraph, xnn_datatype_fp32, |
| 342 | v25_dims.size(), v25_dims.data(), |
| 343 | /*data=*/nullptr, |
| 344 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v25); |
| 345 | if (status != xnn_status_success) { |
| 346 | std::cerr << "failed to create tensor v25" << std::endl; |
| 347 | return nullptr; |
| 348 | } |
| 349 | |
| 350 | uint32_t v26 = XNN_INVALID_VALUE_ID; |
| 351 | std::array<size_t, 4> v26_dims = {{1, 14, 14, 384}}; |
| 352 | status = xnn_define_tensor_value( |
| 353 | subgraph, xnn_datatype_fp32, |
| 354 | v26_dims.size(), v26_dims.data(), |
| 355 | /*data=*/nullptr, |
| 356 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v26); |
| 357 | if (status != xnn_status_success) { |
| 358 | std::cerr << "failed to create tensor v26" << std::endl; |
| 359 | return nullptr; |
| 360 | } |
| 361 | |
| 362 | uint32_t v27 = XNN_INVALID_VALUE_ID; |
| 363 | std::array<size_t, 4> v27_dims = {{1, 14, 14, 64}}; |
| 364 | status = xnn_define_tensor_value( |
| 365 | subgraph, xnn_datatype_fp32, |
| 366 | v27_dims.size(), v27_dims.data(), |
| 367 | /*data=*/nullptr, |
| 368 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v27); |
| 369 | if (status != xnn_status_success) { |
| 370 | std::cerr << "failed to create tensor v27" << std::endl; |
| 371 | return nullptr; |
| 372 | } |
| 373 | |
| 374 | uint32_t v28 = XNN_INVALID_VALUE_ID; |
| 375 | std::array<size_t, 4> v28_dims = {{1, 14, 14, 64}}; |
| 376 | status = xnn_define_tensor_value( |
| 377 | subgraph, xnn_datatype_fp32, |
| 378 | v28_dims.size(), v28_dims.data(), |
| 379 | /*data=*/nullptr, |
| 380 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v28); |
| 381 | if (status != xnn_status_success) { |
| 382 | std::cerr << "failed to create tensor v28" << std::endl; |
| 383 | return nullptr; |
| 384 | } |
| 385 | |
| 386 | uint32_t v29 = XNN_INVALID_VALUE_ID; |
| 387 | std::array<size_t, 4> v29_dims = {{1, 14, 14, 384}}; |
| 388 | status = xnn_define_tensor_value( |
| 389 | subgraph, xnn_datatype_fp32, |
| 390 | v29_dims.size(), v29_dims.data(), |
| 391 | /*data=*/nullptr, |
| 392 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v29); |
| 393 | if (status != xnn_status_success) { |
| 394 | std::cerr << "failed to create tensor v29" << std::endl; |
| 395 | return nullptr; |
| 396 | } |
| 397 | |
| 398 | uint32_t v30 = XNN_INVALID_VALUE_ID; |
| 399 | std::array<size_t, 4> v30_dims = {{1, 14, 14, 384}}; |
| 400 | status = xnn_define_tensor_value( |
| 401 | subgraph, xnn_datatype_fp32, |
| 402 | v30_dims.size(), v30_dims.data(), |
| 403 | /*data=*/nullptr, |
| 404 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v30); |
| 405 | if (status != xnn_status_success) { |
| 406 | std::cerr << "failed to create tensor v30" << std::endl; |
| 407 | return nullptr; |
| 408 | } |
| 409 | |
| 410 | uint32_t v31 = XNN_INVALID_VALUE_ID; |
| 411 | std::array<size_t, 4> v31_dims = {{1, 14, 14, 64}}; |
| 412 | status = xnn_define_tensor_value( |
| 413 | subgraph, xnn_datatype_fp32, |
| 414 | v31_dims.size(), v31_dims.data(), |
| 415 | /*data=*/nullptr, |
| 416 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v31); |
| 417 | if (status != xnn_status_success) { |
| 418 | std::cerr << "failed to create tensor v31" << std::endl; |
| 419 | return nullptr; |
| 420 | } |
| 421 | |
| 422 | uint32_t v32 = XNN_INVALID_VALUE_ID; |
| 423 | std::array<size_t, 4> v32_dims = {{1, 14, 14, 64}}; |
| 424 | status = xnn_define_tensor_value( |
| 425 | subgraph, xnn_datatype_fp32, |
| 426 | v32_dims.size(), v32_dims.data(), |
| 427 | /*data=*/nullptr, |
| 428 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v32); |
| 429 | if (status != xnn_status_success) { |
| 430 | std::cerr << "failed to create tensor v32" << std::endl; |
| 431 | return nullptr; |
| 432 | } |
| 433 | |
| 434 | uint32_t v33 = XNN_INVALID_VALUE_ID; |
| 435 | std::array<size_t, 4> v33_dims = {{1, 14, 14, 384}}; |
| 436 | status = xnn_define_tensor_value( |
| 437 | subgraph, xnn_datatype_fp32, |
| 438 | v33_dims.size(), v33_dims.data(), |
| 439 | /*data=*/nullptr, |
| 440 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v33); |
| 441 | if (status != xnn_status_success) { |
| 442 | std::cerr << "failed to create tensor v33" << std::endl; |
| 443 | return nullptr; |
| 444 | } |
| 445 | |
| 446 | uint32_t v34 = XNN_INVALID_VALUE_ID; |
| 447 | std::array<size_t, 4> v34_dims = {{1, 14, 14, 384}}; |
| 448 | status = xnn_define_tensor_value( |
| 449 | subgraph, xnn_datatype_fp32, |
| 450 | v34_dims.size(), v34_dims.data(), |
| 451 | /*data=*/nullptr, |
| 452 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v34); |
| 453 | if (status != xnn_status_success) { |
| 454 | std::cerr << "failed to create tensor v34" << std::endl; |
| 455 | return nullptr; |
| 456 | } |
| 457 | |
| 458 | uint32_t v35 = XNN_INVALID_VALUE_ID; |
| 459 | std::array<size_t, 4> v35_dims = {{1, 14, 14, 64}}; |
| 460 | status = xnn_define_tensor_value( |
| 461 | subgraph, xnn_datatype_fp32, |
| 462 | v35_dims.size(), v35_dims.data(), |
| 463 | /*data=*/nullptr, |
| 464 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v35); |
| 465 | if (status != xnn_status_success) { |
| 466 | std::cerr << "failed to create tensor v35" << std::endl; |
| 467 | return nullptr; |
| 468 | } |
| 469 | |
| 470 | uint32_t v36 = XNN_INVALID_VALUE_ID; |
| 471 | std::array<size_t, 4> v36_dims = {{1, 14, 14, 64}}; |
| 472 | status = xnn_define_tensor_value( |
| 473 | subgraph, xnn_datatype_fp32, |
| 474 | v36_dims.size(), v36_dims.data(), |
| 475 | /*data=*/nullptr, |
| 476 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v36); |
| 477 | if (status != xnn_status_success) { |
| 478 | std::cerr << "failed to create tensor v36" << std::endl; |
| 479 | return nullptr; |
| 480 | } |
| 481 | |
| 482 | uint32_t v37 = XNN_INVALID_VALUE_ID; |
| 483 | std::array<size_t, 4> v37_dims = {{1, 14, 14, 384}}; |
| 484 | status = xnn_define_tensor_value( |
| 485 | subgraph, xnn_datatype_fp32, |
| 486 | v37_dims.size(), v37_dims.data(), |
| 487 | /*data=*/nullptr, |
| 488 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v37); |
| 489 | if (status != xnn_status_success) { |
| 490 | std::cerr << "failed to create tensor v37" << std::endl; |
| 491 | return nullptr; |
| 492 | } |
| 493 | |
| 494 | uint32_t v38 = XNN_INVALID_VALUE_ID; |
| 495 | std::array<size_t, 4> v38_dims = {{1, 14, 14, 384}}; |
| 496 | status = xnn_define_tensor_value( |
| 497 | subgraph, xnn_datatype_fp32, |
| 498 | v38_dims.size(), v38_dims.data(), |
| 499 | /*data=*/nullptr, |
| 500 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v38); |
| 501 | if (status != xnn_status_success) { |
| 502 | std::cerr << "failed to create tensor v38" << std::endl; |
| 503 | return nullptr; |
| 504 | } |
| 505 | |
| 506 | uint32_t v39 = XNN_INVALID_VALUE_ID; |
| 507 | std::array<size_t, 4> v39_dims = {{1, 14, 14, 96}}; |
| 508 | status = xnn_define_tensor_value( |
| 509 | subgraph, xnn_datatype_fp32, |
| 510 | v39_dims.size(), v39_dims.data(), |
| 511 | /*data=*/nullptr, |
| 512 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v39); |
| 513 | if (status != xnn_status_success) { |
| 514 | std::cerr << "failed to create tensor v39" << std::endl; |
| 515 | return nullptr; |
| 516 | } |
| 517 | |
| 518 | uint32_t v40 = XNN_INVALID_VALUE_ID; |
| 519 | std::array<size_t, 4> v40_dims = {{1, 14, 14, 576}}; |
| 520 | status = xnn_define_tensor_value( |
| 521 | subgraph, xnn_datatype_fp32, |
| 522 | v40_dims.size(), v40_dims.data(), |
| 523 | /*data=*/nullptr, |
| 524 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v40); |
| 525 | if (status != xnn_status_success) { |
| 526 | std::cerr << "failed to create tensor v40" << std::endl; |
| 527 | return nullptr; |
| 528 | } |
| 529 | |
| 530 | uint32_t v41 = XNN_INVALID_VALUE_ID; |
| 531 | std::array<size_t, 4> v41_dims = {{1, 14, 14, 576}}; |
| 532 | status = xnn_define_tensor_value( |
| 533 | subgraph, xnn_datatype_fp32, |
| 534 | v41_dims.size(), v41_dims.data(), |
| 535 | /*data=*/nullptr, |
| 536 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v41); |
| 537 | if (status != xnn_status_success) { |
| 538 | std::cerr << "failed to create tensor v41" << std::endl; |
| 539 | return nullptr; |
| 540 | } |
| 541 | |
| 542 | uint32_t v42 = XNN_INVALID_VALUE_ID; |
| 543 | std::array<size_t, 4> v42_dims = {{1, 14, 14, 96}}; |
| 544 | status = xnn_define_tensor_value( |
| 545 | subgraph, xnn_datatype_fp32, |
| 546 | v42_dims.size(), v42_dims.data(), |
| 547 | /*data=*/nullptr, |
| 548 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v42); |
| 549 | if (status != xnn_status_success) { |
| 550 | std::cerr << "failed to create tensor v42" << std::endl; |
| 551 | return nullptr; |
| 552 | } |
| 553 | |
| 554 | uint32_t v43 = XNN_INVALID_VALUE_ID; |
| 555 | std::array<size_t, 4> v43_dims = {{1, 14, 14, 96}}; |
| 556 | status = xnn_define_tensor_value( |
| 557 | subgraph, xnn_datatype_fp32, |
| 558 | v43_dims.size(), v43_dims.data(), |
| 559 | /*data=*/nullptr, |
| 560 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v43); |
| 561 | if (status != xnn_status_success) { |
| 562 | std::cerr << "failed to create tensor v43" << std::endl; |
| 563 | return nullptr; |
| 564 | } |
| 565 | |
| 566 | uint32_t v44 = XNN_INVALID_VALUE_ID; |
| 567 | std::array<size_t, 4> v44_dims = {{1, 14, 14, 576}}; |
| 568 | status = xnn_define_tensor_value( |
| 569 | subgraph, xnn_datatype_fp32, |
| 570 | v44_dims.size(), v44_dims.data(), |
| 571 | /*data=*/nullptr, |
| 572 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v44); |
| 573 | if (status != xnn_status_success) { |
| 574 | std::cerr << "failed to create tensor v44" << std::endl; |
| 575 | return nullptr; |
| 576 | } |
| 577 | |
| 578 | uint32_t v45 = XNN_INVALID_VALUE_ID; |
| 579 | std::array<size_t, 4> v45_dims = {{1, 14, 14, 576}}; |
| 580 | status = xnn_define_tensor_value( |
| 581 | subgraph, xnn_datatype_fp32, |
| 582 | v45_dims.size(), v45_dims.data(), |
| 583 | /*data=*/nullptr, |
| 584 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v45); |
| 585 | if (status != xnn_status_success) { |
| 586 | std::cerr << "failed to create tensor v45" << std::endl; |
| 587 | return nullptr; |
| 588 | } |
| 589 | |
| 590 | uint32_t v46 = XNN_INVALID_VALUE_ID; |
| 591 | std::array<size_t, 4> v46_dims = {{1, 14, 14, 96}}; |
| 592 | status = xnn_define_tensor_value( |
| 593 | subgraph, xnn_datatype_fp32, |
| 594 | v46_dims.size(), v46_dims.data(), |
| 595 | /*data=*/nullptr, |
| 596 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v46); |
| 597 | if (status != xnn_status_success) { |
| 598 | std::cerr << "failed to create tensor v46" << std::endl; |
| 599 | return nullptr; |
| 600 | } |
| 601 | |
| 602 | uint32_t v47 = XNN_INVALID_VALUE_ID; |
| 603 | std::array<size_t, 4> v47_dims = {{1, 14, 14, 96}}; |
| 604 | status = xnn_define_tensor_value( |
| 605 | subgraph, xnn_datatype_fp32, |
| 606 | v47_dims.size(), v47_dims.data(), |
| 607 | /*data=*/nullptr, |
| 608 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v47); |
| 609 | if (status != xnn_status_success) { |
| 610 | std::cerr << "failed to create tensor v47" << std::endl; |
| 611 | return nullptr; |
| 612 | } |
| 613 | |
| 614 | uint32_t v48 = XNN_INVALID_VALUE_ID; |
| 615 | std::array<size_t, 4> v48_dims = {{1, 14, 14, 576}}; |
| 616 | status = xnn_define_tensor_value( |
| 617 | subgraph, xnn_datatype_fp32, |
| 618 | v48_dims.size(), v48_dims.data(), |
| 619 | /*data=*/nullptr, |
| 620 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v48); |
| 621 | if (status != xnn_status_success) { |
| 622 | std::cerr << "failed to create tensor v48" << std::endl; |
| 623 | return nullptr; |
| 624 | } |
| 625 | |
| 626 | uint32_t v49 = XNN_INVALID_VALUE_ID; |
| 627 | std::array<size_t, 4> v49_dims = {{1, 7, 7, 576}}; |
| 628 | status = xnn_define_tensor_value( |
| 629 | subgraph, xnn_datatype_fp32, |
| 630 | v49_dims.size(), v49_dims.data(), |
| 631 | /*data=*/nullptr, |
| 632 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v49); |
| 633 | if (status != xnn_status_success) { |
| 634 | std::cerr << "failed to create tensor v49" << std::endl; |
| 635 | return nullptr; |
| 636 | } |
| 637 | |
| 638 | uint32_t v50 = XNN_INVALID_VALUE_ID; |
| 639 | std::array<size_t, 4> v50_dims = {{1, 7, 7, 160}}; |
| 640 | status = xnn_define_tensor_value( |
| 641 | subgraph, xnn_datatype_fp32, |
| 642 | v50_dims.size(), v50_dims.data(), |
| 643 | /*data=*/nullptr, |
| 644 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v50); |
| 645 | if (status != xnn_status_success) { |
| 646 | std::cerr << "failed to create tensor v50" << std::endl; |
| 647 | return nullptr; |
| 648 | } |
| 649 | |
| 650 | uint32_t v51 = XNN_INVALID_VALUE_ID; |
| 651 | std::array<size_t, 4> v51_dims = {{1, 7, 7, 960}}; |
| 652 | status = xnn_define_tensor_value( |
| 653 | subgraph, xnn_datatype_fp32, |
| 654 | v51_dims.size(), v51_dims.data(), |
| 655 | /*data=*/nullptr, |
| 656 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v51); |
| 657 | if (status != xnn_status_success) { |
| 658 | std::cerr << "failed to create tensor v51" << std::endl; |
| 659 | return nullptr; |
| 660 | } |
| 661 | |
| 662 | uint32_t v52 = XNN_INVALID_VALUE_ID; |
| 663 | std::array<size_t, 4> v52_dims = {{1, 7, 7, 960}}; |
| 664 | status = xnn_define_tensor_value( |
| 665 | subgraph, xnn_datatype_fp32, |
| 666 | v52_dims.size(), v52_dims.data(), |
| 667 | /*data=*/nullptr, |
| 668 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v52); |
| 669 | if (status != xnn_status_success) { |
| 670 | std::cerr << "failed to create tensor v52" << std::endl; |
| 671 | return nullptr; |
| 672 | } |
| 673 | |
| 674 | uint32_t v53 = XNN_INVALID_VALUE_ID; |
| 675 | std::array<size_t, 4> v53_dims = {{1, 7, 7, 160}}; |
| 676 | status = xnn_define_tensor_value( |
| 677 | subgraph, xnn_datatype_fp32, |
| 678 | v53_dims.size(), v53_dims.data(), |
| 679 | /*data=*/nullptr, |
| 680 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v53); |
| 681 | if (status != xnn_status_success) { |
| 682 | std::cerr << "failed to create tensor v53" << std::endl; |
| 683 | return nullptr; |
| 684 | } |
| 685 | |
| 686 | uint32_t v54 = XNN_INVALID_VALUE_ID; |
| 687 | std::array<size_t, 4> v54_dims = {{1, 7, 7, 160}}; |
| 688 | status = xnn_define_tensor_value( |
| 689 | subgraph, xnn_datatype_fp32, |
| 690 | v54_dims.size(), v54_dims.data(), |
| 691 | /*data=*/nullptr, |
| 692 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v54); |
| 693 | if (status != xnn_status_success) { |
| 694 | std::cerr << "failed to create tensor v54" << std::endl; |
| 695 | return nullptr; |
| 696 | } |
| 697 | |
| 698 | uint32_t v55 = XNN_INVALID_VALUE_ID; |
| 699 | std::array<size_t, 4> v55_dims = {{1, 7, 7, 960}}; |
| 700 | status = xnn_define_tensor_value( |
| 701 | subgraph, xnn_datatype_fp32, |
| 702 | v55_dims.size(), v55_dims.data(), |
| 703 | /*data=*/nullptr, |
| 704 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v55); |
| 705 | if (status != xnn_status_success) { |
| 706 | std::cerr << "failed to create tensor v55" << std::endl; |
| 707 | return nullptr; |
| 708 | } |
| 709 | |
| 710 | uint32_t v56 = XNN_INVALID_VALUE_ID; |
| 711 | std::array<size_t, 4> v56_dims = {{1, 7, 7, 960}}; |
| 712 | status = xnn_define_tensor_value( |
| 713 | subgraph, xnn_datatype_fp32, |
| 714 | v56_dims.size(), v56_dims.data(), |
| 715 | /*data=*/nullptr, |
| 716 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v56); |
| 717 | if (status != xnn_status_success) { |
| 718 | std::cerr << "failed to create tensor v56" << std::endl; |
| 719 | return nullptr; |
| 720 | } |
| 721 | |
| 722 | uint32_t v57 = XNN_INVALID_VALUE_ID; |
| 723 | std::array<size_t, 4> v57_dims = {{1, 7, 7, 160}}; |
| 724 | status = xnn_define_tensor_value( |
| 725 | subgraph, xnn_datatype_fp32, |
| 726 | v57_dims.size(), v57_dims.data(), |
| 727 | /*data=*/nullptr, |
| 728 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v57); |
| 729 | if (status != xnn_status_success) { |
| 730 | std::cerr << "failed to create tensor v57" << std::endl; |
| 731 | return nullptr; |
| 732 | } |
| 733 | |
| 734 | uint32_t v58 = XNN_INVALID_VALUE_ID; |
| 735 | std::array<size_t, 4> v58_dims = {{1, 7, 7, 160}}; |
| 736 | status = xnn_define_tensor_value( |
| 737 | subgraph, xnn_datatype_fp32, |
| 738 | v58_dims.size(), v58_dims.data(), |
| 739 | /*data=*/nullptr, |
| 740 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v58); |
| 741 | if (status != xnn_status_success) { |
| 742 | std::cerr << "failed to create tensor v58" << std::endl; |
| 743 | return nullptr; |
| 744 | } |
| 745 | |
| 746 | uint32_t v59 = XNN_INVALID_VALUE_ID; |
| 747 | std::array<size_t, 4> v59_dims = {{1, 7, 7, 960}}; |
| 748 | status = xnn_define_tensor_value( |
| 749 | subgraph, xnn_datatype_fp32, |
| 750 | v59_dims.size(), v59_dims.data(), |
| 751 | /*data=*/nullptr, |
| 752 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v59); |
| 753 | if (status != xnn_status_success) { |
| 754 | std::cerr << "failed to create tensor v59" << std::endl; |
| 755 | return nullptr; |
| 756 | } |
| 757 | |
| 758 | uint32_t v60 = XNN_INVALID_VALUE_ID; |
| 759 | std::array<size_t, 4> v60_dims = {{1, 7, 7, 960}}; |
| 760 | status = xnn_define_tensor_value( |
| 761 | subgraph, xnn_datatype_fp32, |
| 762 | v60_dims.size(), v60_dims.data(), |
| 763 | /*data=*/nullptr, |
| 764 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v60); |
| 765 | if (status != xnn_status_success) { |
| 766 | std::cerr << "failed to create tensor v60" << std::endl; |
| 767 | return nullptr; |
| 768 | } |
| 769 | |
| 770 | uint32_t v61 = XNN_INVALID_VALUE_ID; |
| 771 | std::array<size_t, 4> v61_dims = {{1, 7, 7, 320}}; |
| 772 | status = xnn_define_tensor_value( |
| 773 | subgraph, xnn_datatype_fp32, |
| 774 | v61_dims.size(), v61_dims.data(), |
| 775 | /*data=*/nullptr, |
| 776 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v61); |
| 777 | if (status != xnn_status_success) { |
| 778 | std::cerr << "failed to create tensor v61" << std::endl; |
| 779 | return nullptr; |
| 780 | } |
| 781 | |
| 782 | uint32_t v62 = XNN_INVALID_VALUE_ID; |
| 783 | std::array<size_t, 4> v62_dims = {{1, 7, 7, 1280}}; |
| 784 | status = xnn_define_tensor_value( |
| 785 | subgraph, xnn_datatype_fp32, |
| 786 | v62_dims.size(), v62_dims.data(), |
| 787 | /*data=*/nullptr, |
| 788 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v62); |
| 789 | if (status != xnn_status_success) { |
| 790 | std::cerr << "failed to create tensor v62" << std::endl; |
| 791 | return nullptr; |
| 792 | } |
| 793 | |
| 794 | uint32_t v63 = XNN_INVALID_VALUE_ID; |
| 795 | std::array<size_t, 4> v63_dims = {{1, 1, 1, 1280}}; |
| 796 | status = xnn_define_tensor_value( |
| 797 | subgraph, xnn_datatype_fp32, |
| 798 | v63_dims.size(), v63_dims.data(), |
| 799 | /*data=*/nullptr, |
| 800 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v63); |
| 801 | if (status != xnn_status_success) { |
| 802 | std::cerr << "failed to create tensor v63" << std::endl; |
| 803 | return nullptr; |
| 804 | } |
| 805 | |
| 806 | uint32_t v64 = XNN_INVALID_VALUE_ID; |
| 807 | std::array<size_t, 4> v64_dims = {{1, 1, 1, 1001}}; |
| 808 | status = xnn_define_tensor_value( |
| 809 | subgraph, xnn_datatype_fp32, |
| 810 | v64_dims.size(), v64_dims.data(), |
| 811 | /*data=*/nullptr, |
| 812 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v64); |
| 813 | if (status != xnn_status_success) { |
| 814 | std::cerr << "failed to create tensor v64" << std::endl; |
| 815 | return nullptr; |
| 816 | } |
| 817 | |
| 818 | uint32_t v65 = XNN_INVALID_VALUE_ID; |
| 819 | std::array<size_t, 2> v65_dims = {{1, 1001}}; |
| 820 | status = xnn_define_tensor_value( |
| 821 | subgraph, xnn_datatype_fp32, |
| 822 | v65_dims.size(), v65_dims.data(), |
| 823 | /*data=*/nullptr, |
| 824 | XNN_INVALID_VALUE_ID, /*flags=*/0, &v65); |
| 825 | if (status != xnn_status_success) { |
| 826 | std::cerr << "failed to create tensor v65" << std::endl; |
| 827 | return nullptr; |
| 828 | } |
| 829 | |
| 830 | uint32_t v66 = XNN_INVALID_VALUE_ID; |
| 831 | std::array<size_t, 2> v66_dims = {{1, 1001}}; |
| 832 | status = xnn_define_tensor_value( |
| 833 | subgraph, xnn_datatype_fp32, |
| 834 | v66_dims.size(), v66_dims.data(), |
| 835 | /*data=*/nullptr, |
| 836 | 1, XNN_VALUE_FLAG_EXTERNAL_OUTPUT, &v66); |
| 837 | if (status != xnn_status_success) { |
| 838 | std::cerr << "failed to create tensor v66" << std::endl; |
| 839 | return nullptr; |
| 840 | } |
| 841 | |
| 842 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(864, float)> w67_data; |
| 843 | uint32_t w67 = XNN_INVALID_VALUE_ID; |
| 844 | std::array<size_t, 4> w67_dims = {{32, 3, 3, 3}}; |
| 845 | status = xnn_define_tensor_value( |
| 846 | subgraph, xnn_datatype_fp32, |
| 847 | w67_dims.size(), w67_dims.data(), |
| 848 | /*data=*/w67_data.data(), |
| 849 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w67); |
| 850 | if (status != xnn_status_success) { |
| 851 | std::cerr << "failed to create tensor w67" << std::endl; |
| 852 | return nullptr; |
| 853 | } |
| 854 | |
| 855 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(32, float)> w68_data; |
| 856 | uint32_t w68 = XNN_INVALID_VALUE_ID; |
| 857 | std::array<size_t, 1> w68_dims = {{32}}; |
| 858 | status = xnn_define_tensor_value( |
| 859 | subgraph, xnn_datatype_fp32, |
| 860 | w68_dims.size(), w68_dims.data(), |
| 861 | /*data=*/w68_data.data(), |
| 862 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w68); |
| 863 | if (status != xnn_status_success) { |
| 864 | std::cerr << "failed to create tensor w68" << std::endl; |
| 865 | return nullptr; |
| 866 | } |
| 867 | |
| 868 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(288, float)> w69_data; |
| 869 | uint32_t w69 = XNN_INVALID_VALUE_ID; |
| 870 | std::array<size_t, 4> w69_dims = {{1, 3, 3, 32}}; |
| 871 | status = xnn_define_tensor_value( |
| 872 | subgraph, xnn_datatype_fp32, |
| 873 | w69_dims.size(), w69_dims.data(), |
| 874 | /*data=*/w69_data.data(), |
| 875 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w69); |
| 876 | if (status != xnn_status_success) { |
| 877 | std::cerr << "failed to create tensor w69" << std::endl; |
| 878 | return nullptr; |
| 879 | } |
| 880 | |
| 881 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(32, float)> w70_data; |
| 882 | uint32_t w70 = XNN_INVALID_VALUE_ID; |
| 883 | std::array<size_t, 1> w70_dims = {{32}}; |
| 884 | status = xnn_define_tensor_value( |
| 885 | subgraph, xnn_datatype_fp32, |
| 886 | w70_dims.size(), w70_dims.data(), |
| 887 | /*data=*/w70_data.data(), |
| 888 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w70); |
| 889 | if (status != xnn_status_success) { |
| 890 | std::cerr << "failed to create tensor w70" << std::endl; |
| 891 | return nullptr; |
| 892 | } |
| 893 | |
| 894 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(512, float)> w71_data; |
| 895 | uint32_t w71 = XNN_INVALID_VALUE_ID; |
| 896 | std::array<size_t, 4> w71_dims = {{16, 1, 1, 32}}; |
| 897 | status = xnn_define_tensor_value( |
| 898 | subgraph, xnn_datatype_fp32, |
| 899 | w71_dims.size(), w71_dims.data(), |
| 900 | /*data=*/w71_data.data(), |
| 901 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w71); |
| 902 | if (status != xnn_status_success) { |
| 903 | std::cerr << "failed to create tensor w71" << std::endl; |
| 904 | return nullptr; |
| 905 | } |
| 906 | |
| 907 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(16, float)> w72_data; |
| 908 | uint32_t w72 = XNN_INVALID_VALUE_ID; |
| 909 | std::array<size_t, 1> w72_dims = {{16}}; |
| 910 | status = xnn_define_tensor_value( |
| 911 | subgraph, xnn_datatype_fp32, |
| 912 | w72_dims.size(), w72_dims.data(), |
| 913 | /*data=*/w72_data.data(), |
| 914 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w72); |
| 915 | if (status != xnn_status_success) { |
| 916 | std::cerr << "failed to create tensor w72" << std::endl; |
| 917 | return nullptr; |
| 918 | } |
| 919 | |
| 920 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1536, float)> w73_data; |
| 921 | uint32_t w73 = XNN_INVALID_VALUE_ID; |
| 922 | std::array<size_t, 4> w73_dims = {{96, 1, 1, 16}}; |
| 923 | status = xnn_define_tensor_value( |
| 924 | subgraph, xnn_datatype_fp32, |
| 925 | w73_dims.size(), w73_dims.data(), |
| 926 | /*data=*/w73_data.data(), |
| 927 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w73); |
| 928 | if (status != xnn_status_success) { |
| 929 | std::cerr << "failed to create tensor w73" << std::endl; |
| 930 | return nullptr; |
| 931 | } |
| 932 | |
| 933 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(96, float)> w74_data; |
| 934 | uint32_t w74 = XNN_INVALID_VALUE_ID; |
| 935 | std::array<size_t, 1> w74_dims = {{96}}; |
| 936 | status = xnn_define_tensor_value( |
| 937 | subgraph, xnn_datatype_fp32, |
| 938 | w74_dims.size(), w74_dims.data(), |
| 939 | /*data=*/w74_data.data(), |
| 940 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w74); |
| 941 | if (status != xnn_status_success) { |
| 942 | std::cerr << "failed to create tensor w74" << std::endl; |
| 943 | return nullptr; |
| 944 | } |
| 945 | |
| 946 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(864, float)> w75_data; |
| 947 | uint32_t w75 = XNN_INVALID_VALUE_ID; |
| 948 | std::array<size_t, 4> w75_dims = {{1, 3, 3, 96}}; |
| 949 | status = xnn_define_tensor_value( |
| 950 | subgraph, xnn_datatype_fp32, |
| 951 | w75_dims.size(), w75_dims.data(), |
| 952 | /*data=*/w75_data.data(), |
| 953 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w75); |
| 954 | if (status != xnn_status_success) { |
| 955 | std::cerr << "failed to create tensor w75" << std::endl; |
| 956 | return nullptr; |
| 957 | } |
| 958 | |
| 959 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(96, float)> w76_data; |
| 960 | uint32_t w76 = XNN_INVALID_VALUE_ID; |
| 961 | std::array<size_t, 1> w76_dims = {{96}}; |
| 962 | status = xnn_define_tensor_value( |
| 963 | subgraph, xnn_datatype_fp32, |
| 964 | w76_dims.size(), w76_dims.data(), |
| 965 | /*data=*/w76_data.data(), |
| 966 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w76); |
| 967 | if (status != xnn_status_success) { |
| 968 | std::cerr << "failed to create tensor w76" << std::endl; |
| 969 | return nullptr; |
| 970 | } |
| 971 | |
| 972 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(2304, float)> w77_data; |
| 973 | uint32_t w77 = XNN_INVALID_VALUE_ID; |
| 974 | std::array<size_t, 4> w77_dims = {{24, 1, 1, 96}}; |
| 975 | status = xnn_define_tensor_value( |
| 976 | subgraph, xnn_datatype_fp32, |
| 977 | w77_dims.size(), w77_dims.data(), |
| 978 | /*data=*/w77_data.data(), |
| 979 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w77); |
| 980 | if (status != xnn_status_success) { |
| 981 | std::cerr << "failed to create tensor w77" << std::endl; |
| 982 | return nullptr; |
| 983 | } |
| 984 | |
| 985 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24, float)> w78_data; |
| 986 | uint32_t w78 = XNN_INVALID_VALUE_ID; |
| 987 | std::array<size_t, 1> w78_dims = {{24}}; |
| 988 | status = xnn_define_tensor_value( |
| 989 | subgraph, xnn_datatype_fp32, |
| 990 | w78_dims.size(), w78_dims.data(), |
| 991 | /*data=*/w78_data.data(), |
| 992 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w78); |
| 993 | if (status != xnn_status_success) { |
| 994 | std::cerr << "failed to create tensor w78" << std::endl; |
| 995 | return nullptr; |
| 996 | } |
| 997 | |
| 998 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w79_data; |
| 999 | uint32_t w79 = XNN_INVALID_VALUE_ID; |
| 1000 | std::array<size_t, 4> w79_dims = {{144, 1, 1, 24}}; |
| 1001 | status = xnn_define_tensor_value( |
| 1002 | subgraph, xnn_datatype_fp32, |
| 1003 | w79_dims.size(), w79_dims.data(), |
| 1004 | /*data=*/w79_data.data(), |
| 1005 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w79); |
| 1006 | if (status != xnn_status_success) { |
| 1007 | std::cerr << "failed to create tensor w79" << std::endl; |
| 1008 | return nullptr; |
| 1009 | } |
| 1010 | |
| 1011 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(144, float)> w80_data; |
| 1012 | uint32_t w80 = XNN_INVALID_VALUE_ID; |
| 1013 | std::array<size_t, 1> w80_dims = {{144}}; |
| 1014 | status = xnn_define_tensor_value( |
| 1015 | subgraph, xnn_datatype_fp32, |
| 1016 | w80_dims.size(), w80_dims.data(), |
| 1017 | /*data=*/w80_data.data(), |
| 1018 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w80); |
| 1019 | if (status != xnn_status_success) { |
| 1020 | std::cerr << "failed to create tensor w80" << std::endl; |
| 1021 | return nullptr; |
| 1022 | } |
| 1023 | |
| 1024 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1296, float)> w81_data; |
| 1025 | uint32_t w81 = XNN_INVALID_VALUE_ID; |
| 1026 | std::array<size_t, 4> w81_dims = {{1, 3, 3, 144}}; |
| 1027 | status = xnn_define_tensor_value( |
| 1028 | subgraph, xnn_datatype_fp32, |
| 1029 | w81_dims.size(), w81_dims.data(), |
| 1030 | /*data=*/w81_data.data(), |
| 1031 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w81); |
| 1032 | if (status != xnn_status_success) { |
| 1033 | std::cerr << "failed to create tensor w81" << std::endl; |
| 1034 | return nullptr; |
| 1035 | } |
| 1036 | |
| 1037 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(144, float)> w82_data; |
| 1038 | uint32_t w82 = XNN_INVALID_VALUE_ID; |
| 1039 | std::array<size_t, 1> w82_dims = {{144}}; |
| 1040 | status = xnn_define_tensor_value( |
| 1041 | subgraph, xnn_datatype_fp32, |
| 1042 | w82_dims.size(), w82_dims.data(), |
| 1043 | /*data=*/w82_data.data(), |
| 1044 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w82); |
| 1045 | if (status != xnn_status_success) { |
| 1046 | std::cerr << "failed to create tensor w82" << std::endl; |
| 1047 | return nullptr; |
| 1048 | } |
| 1049 | |
| 1050 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w83_data; |
| 1051 | uint32_t w83 = XNN_INVALID_VALUE_ID; |
| 1052 | std::array<size_t, 4> w83_dims = {{24, 1, 1, 144}}; |
| 1053 | status = xnn_define_tensor_value( |
| 1054 | subgraph, xnn_datatype_fp32, |
| 1055 | w83_dims.size(), w83_dims.data(), |
| 1056 | /*data=*/w83_data.data(), |
| 1057 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w83); |
| 1058 | if (status != xnn_status_success) { |
| 1059 | std::cerr << "failed to create tensor w83" << std::endl; |
| 1060 | return nullptr; |
| 1061 | } |
| 1062 | |
| 1063 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24, float)> w84_data; |
| 1064 | uint32_t w84 = XNN_INVALID_VALUE_ID; |
| 1065 | std::array<size_t, 1> w84_dims = {{24}}; |
| 1066 | status = xnn_define_tensor_value( |
| 1067 | subgraph, xnn_datatype_fp32, |
| 1068 | w84_dims.size(), w84_dims.data(), |
| 1069 | /*data=*/w84_data.data(), |
| 1070 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w84); |
| 1071 | if (status != xnn_status_success) { |
| 1072 | std::cerr << "failed to create tensor w84" << std::endl; |
| 1073 | return nullptr; |
| 1074 | } |
| 1075 | |
| 1076 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w85_data; |
| 1077 | uint32_t w85 = XNN_INVALID_VALUE_ID; |
| 1078 | std::array<size_t, 4> w85_dims = {{144, 1, 1, 24}}; |
| 1079 | status = xnn_define_tensor_value( |
| 1080 | subgraph, xnn_datatype_fp32, |
| 1081 | w85_dims.size(), w85_dims.data(), |
| 1082 | /*data=*/w85_data.data(), |
| 1083 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w85); |
| 1084 | if (status != xnn_status_success) { |
| 1085 | std::cerr << "failed to create tensor w85" << std::endl; |
| 1086 | return nullptr; |
| 1087 | } |
| 1088 | |
| 1089 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(144, float)> w86_data; |
| 1090 | uint32_t w86 = XNN_INVALID_VALUE_ID; |
| 1091 | std::array<size_t, 1> w86_dims = {{144}}; |
| 1092 | status = xnn_define_tensor_value( |
| 1093 | subgraph, xnn_datatype_fp32, |
| 1094 | w86_dims.size(), w86_dims.data(), |
| 1095 | /*data=*/w86_data.data(), |
| 1096 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w86); |
| 1097 | if (status != xnn_status_success) { |
| 1098 | std::cerr << "failed to create tensor w86" << std::endl; |
| 1099 | return nullptr; |
| 1100 | } |
| 1101 | |
| 1102 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1296, float)> w87_data; |
| 1103 | uint32_t w87 = XNN_INVALID_VALUE_ID; |
| 1104 | std::array<size_t, 4> w87_dims = {{1, 3, 3, 144}}; |
| 1105 | status = xnn_define_tensor_value( |
| 1106 | subgraph, xnn_datatype_fp32, |
| 1107 | w87_dims.size(), w87_dims.data(), |
| 1108 | /*data=*/w87_data.data(), |
| 1109 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w87); |
| 1110 | if (status != xnn_status_success) { |
| 1111 | std::cerr << "failed to create tensor w87" << std::endl; |
| 1112 | return nullptr; |
| 1113 | } |
| 1114 | |
| 1115 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(144, float)> w88_data; |
| 1116 | uint32_t w88 = XNN_INVALID_VALUE_ID; |
| 1117 | std::array<size_t, 1> w88_dims = {{144}}; |
| 1118 | status = xnn_define_tensor_value( |
| 1119 | subgraph, xnn_datatype_fp32, |
| 1120 | w88_dims.size(), w88_dims.data(), |
| 1121 | /*data=*/w88_data.data(), |
| 1122 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w88); |
| 1123 | if (status != xnn_status_success) { |
| 1124 | std::cerr << "failed to create tensor w88" << std::endl; |
| 1125 | return nullptr; |
| 1126 | } |
| 1127 | |
| 1128 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(4608, float)> w89_data; |
| 1129 | uint32_t w89 = XNN_INVALID_VALUE_ID; |
| 1130 | std::array<size_t, 4> w89_dims = {{32, 1, 1, 144}}; |
| 1131 | status = xnn_define_tensor_value( |
| 1132 | subgraph, xnn_datatype_fp32, |
| 1133 | w89_dims.size(), w89_dims.data(), |
| 1134 | /*data=*/w89_data.data(), |
| 1135 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w89); |
| 1136 | if (status != xnn_status_success) { |
| 1137 | std::cerr << "failed to create tensor w89" << std::endl; |
| 1138 | return nullptr; |
| 1139 | } |
| 1140 | |
| 1141 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(32, float)> w90_data; |
| 1142 | uint32_t w90 = XNN_INVALID_VALUE_ID; |
| 1143 | std::array<size_t, 1> w90_dims = {{32}}; |
| 1144 | status = xnn_define_tensor_value( |
| 1145 | subgraph, xnn_datatype_fp32, |
| 1146 | w90_dims.size(), w90_dims.data(), |
| 1147 | /*data=*/w90_data.data(), |
| 1148 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w90); |
| 1149 | if (status != xnn_status_success) { |
| 1150 | std::cerr << "failed to create tensor w90" << std::endl; |
| 1151 | return nullptr; |
| 1152 | } |
| 1153 | |
| 1154 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(6144, float)> w91_data; |
| 1155 | uint32_t w91 = XNN_INVALID_VALUE_ID; |
| 1156 | std::array<size_t, 4> w91_dims = {{192, 1, 1, 32}}; |
| 1157 | status = xnn_define_tensor_value( |
| 1158 | subgraph, xnn_datatype_fp32, |
| 1159 | w91_dims.size(), w91_dims.data(), |
| 1160 | /*data=*/w91_data.data(), |
| 1161 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w91); |
| 1162 | if (status != xnn_status_success) { |
| 1163 | std::cerr << "failed to create tensor w91" << std::endl; |
| 1164 | return nullptr; |
| 1165 | } |
| 1166 | |
| 1167 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w92_data; |
| 1168 | uint32_t w92 = XNN_INVALID_VALUE_ID; |
| 1169 | std::array<size_t, 1> w92_dims = {{192}}; |
| 1170 | status = xnn_define_tensor_value( |
| 1171 | subgraph, xnn_datatype_fp32, |
| 1172 | w92_dims.size(), w92_dims.data(), |
| 1173 | /*data=*/w92_data.data(), |
| 1174 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w92); |
| 1175 | if (status != xnn_status_success) { |
| 1176 | std::cerr << "failed to create tensor w92" << std::endl; |
| 1177 | return nullptr; |
| 1178 | } |
| 1179 | |
| 1180 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1728, float)> w93_data; |
| 1181 | uint32_t w93 = XNN_INVALID_VALUE_ID; |
| 1182 | std::array<size_t, 4> w93_dims = {{1, 3, 3, 192}}; |
| 1183 | status = xnn_define_tensor_value( |
| 1184 | subgraph, xnn_datatype_fp32, |
| 1185 | w93_dims.size(), w93_dims.data(), |
| 1186 | /*data=*/w93_data.data(), |
| 1187 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w93); |
| 1188 | if (status != xnn_status_success) { |
| 1189 | std::cerr << "failed to create tensor w93" << std::endl; |
| 1190 | return nullptr; |
| 1191 | } |
| 1192 | |
| 1193 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w94_data; |
| 1194 | uint32_t w94 = XNN_INVALID_VALUE_ID; |
| 1195 | std::array<size_t, 1> w94_dims = {{192}}; |
| 1196 | status = xnn_define_tensor_value( |
| 1197 | subgraph, xnn_datatype_fp32, |
| 1198 | w94_dims.size(), w94_dims.data(), |
| 1199 | /*data=*/w94_data.data(), |
| 1200 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w94); |
| 1201 | if (status != xnn_status_success) { |
| 1202 | std::cerr << "failed to create tensor w94" << std::endl; |
| 1203 | return nullptr; |
| 1204 | } |
| 1205 | |
| 1206 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(6144, float)> w95_data; |
| 1207 | uint32_t w95 = XNN_INVALID_VALUE_ID; |
| 1208 | std::array<size_t, 4> w95_dims = {{32, 1, 1, 192}}; |
| 1209 | status = xnn_define_tensor_value( |
| 1210 | subgraph, xnn_datatype_fp32, |
| 1211 | w95_dims.size(), w95_dims.data(), |
| 1212 | /*data=*/w95_data.data(), |
| 1213 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w95); |
| 1214 | if (status != xnn_status_success) { |
| 1215 | std::cerr << "failed to create tensor w95" << std::endl; |
| 1216 | return nullptr; |
| 1217 | } |
| 1218 | |
| 1219 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(32, float)> w96_data; |
| 1220 | uint32_t w96 = XNN_INVALID_VALUE_ID; |
| 1221 | std::array<size_t, 1> w96_dims = {{32}}; |
| 1222 | status = xnn_define_tensor_value( |
| 1223 | subgraph, xnn_datatype_fp32, |
| 1224 | w96_dims.size(), w96_dims.data(), |
| 1225 | /*data=*/w96_data.data(), |
| 1226 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w96); |
| 1227 | if (status != xnn_status_success) { |
| 1228 | std::cerr << "failed to create tensor w96" << std::endl; |
| 1229 | return nullptr; |
| 1230 | } |
| 1231 | |
| 1232 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(6144, float)> w97_data; |
| 1233 | uint32_t w97 = XNN_INVALID_VALUE_ID; |
| 1234 | std::array<size_t, 4> w97_dims = {{192, 1, 1, 32}}; |
| 1235 | status = xnn_define_tensor_value( |
| 1236 | subgraph, xnn_datatype_fp32, |
| 1237 | w97_dims.size(), w97_dims.data(), |
| 1238 | /*data=*/w97_data.data(), |
| 1239 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w97); |
| 1240 | if (status != xnn_status_success) { |
| 1241 | std::cerr << "failed to create tensor w97" << std::endl; |
| 1242 | return nullptr; |
| 1243 | } |
| 1244 | |
| 1245 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w98_data; |
| 1246 | uint32_t w98 = XNN_INVALID_VALUE_ID; |
| 1247 | std::array<size_t, 1> w98_dims = {{192}}; |
| 1248 | status = xnn_define_tensor_value( |
| 1249 | subgraph, xnn_datatype_fp32, |
| 1250 | w98_dims.size(), w98_dims.data(), |
| 1251 | /*data=*/w98_data.data(), |
| 1252 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w98); |
| 1253 | if (status != xnn_status_success) { |
| 1254 | std::cerr << "failed to create tensor w98" << std::endl; |
| 1255 | return nullptr; |
| 1256 | } |
| 1257 | |
| 1258 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1728, float)> w99_data; |
| 1259 | uint32_t w99 = XNN_INVALID_VALUE_ID; |
| 1260 | std::array<size_t, 4> w99_dims = {{1, 3, 3, 192}}; |
| 1261 | status = xnn_define_tensor_value( |
| 1262 | subgraph, xnn_datatype_fp32, |
| 1263 | w99_dims.size(), w99_dims.data(), |
| 1264 | /*data=*/w99_data.data(), |
| 1265 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w99); |
| 1266 | if (status != xnn_status_success) { |
| 1267 | std::cerr << "failed to create tensor w99" << std::endl; |
| 1268 | return nullptr; |
| 1269 | } |
| 1270 | |
| 1271 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w100_data; |
| 1272 | uint32_t w100 = XNN_INVALID_VALUE_ID; |
| 1273 | std::array<size_t, 1> w100_dims = {{192}}; |
| 1274 | status = xnn_define_tensor_value( |
| 1275 | subgraph, xnn_datatype_fp32, |
| 1276 | w100_dims.size(), w100_dims.data(), |
| 1277 | /*data=*/w100_data.data(), |
| 1278 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w100); |
| 1279 | if (status != xnn_status_success) { |
| 1280 | std::cerr << "failed to create tensor w100" << std::endl; |
| 1281 | return nullptr; |
| 1282 | } |
| 1283 | |
| 1284 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(6144, float)> w101_data; |
| 1285 | uint32_t w101 = XNN_INVALID_VALUE_ID; |
| 1286 | std::array<size_t, 4> w101_dims = {{32, 1, 1, 192}}; |
| 1287 | status = xnn_define_tensor_value( |
| 1288 | subgraph, xnn_datatype_fp32, |
| 1289 | w101_dims.size(), w101_dims.data(), |
| 1290 | /*data=*/w101_data.data(), |
| 1291 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w101); |
| 1292 | if (status != xnn_status_success) { |
| 1293 | std::cerr << "failed to create tensor w101" << std::endl; |
| 1294 | return nullptr; |
| 1295 | } |
| 1296 | |
| 1297 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(32, float)> w102_data; |
| 1298 | uint32_t w102 = XNN_INVALID_VALUE_ID; |
| 1299 | std::array<size_t, 1> w102_dims = {{32}}; |
| 1300 | status = xnn_define_tensor_value( |
| 1301 | subgraph, xnn_datatype_fp32, |
| 1302 | w102_dims.size(), w102_dims.data(), |
| 1303 | /*data=*/w102_data.data(), |
| 1304 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w102); |
| 1305 | if (status != xnn_status_success) { |
| 1306 | std::cerr << "failed to create tensor w102" << std::endl; |
| 1307 | return nullptr; |
| 1308 | } |
| 1309 | |
| 1310 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(6144, float)> w103_data; |
| 1311 | uint32_t w103 = XNN_INVALID_VALUE_ID; |
| 1312 | std::array<size_t, 4> w103_dims = {{192, 1, 1, 32}}; |
| 1313 | status = xnn_define_tensor_value( |
| 1314 | subgraph, xnn_datatype_fp32, |
| 1315 | w103_dims.size(), w103_dims.data(), |
| 1316 | /*data=*/w103_data.data(), |
| 1317 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w103); |
| 1318 | if (status != xnn_status_success) { |
| 1319 | std::cerr << "failed to create tensor w103" << std::endl; |
| 1320 | return nullptr; |
| 1321 | } |
| 1322 | |
| 1323 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w104_data; |
| 1324 | uint32_t w104 = XNN_INVALID_VALUE_ID; |
| 1325 | std::array<size_t, 1> w104_dims = {{192}}; |
| 1326 | status = xnn_define_tensor_value( |
| 1327 | subgraph, xnn_datatype_fp32, |
| 1328 | w104_dims.size(), w104_dims.data(), |
| 1329 | /*data=*/w104_data.data(), |
| 1330 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w104); |
| 1331 | if (status != xnn_status_success) { |
| 1332 | std::cerr << "failed to create tensor w104" << std::endl; |
| 1333 | return nullptr; |
| 1334 | } |
| 1335 | |
| 1336 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1728, float)> w105_data; |
| 1337 | uint32_t w105 = XNN_INVALID_VALUE_ID; |
| 1338 | std::array<size_t, 4> w105_dims = {{1, 3, 3, 192}}; |
| 1339 | status = xnn_define_tensor_value( |
| 1340 | subgraph, xnn_datatype_fp32, |
| 1341 | w105_dims.size(), w105_dims.data(), |
| 1342 | /*data=*/w105_data.data(), |
| 1343 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w105); |
| 1344 | if (status != xnn_status_success) { |
| 1345 | std::cerr << "failed to create tensor w105" << std::endl; |
| 1346 | return nullptr; |
| 1347 | } |
| 1348 | |
| 1349 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(192, float)> w106_data; |
| 1350 | uint32_t w106 = XNN_INVALID_VALUE_ID; |
| 1351 | std::array<size_t, 1> w106_dims = {{192}}; |
| 1352 | status = xnn_define_tensor_value( |
| 1353 | subgraph, xnn_datatype_fp32, |
| 1354 | w106_dims.size(), w106_dims.data(), |
| 1355 | /*data=*/w106_data.data(), |
| 1356 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w106); |
| 1357 | if (status != xnn_status_success) { |
| 1358 | std::cerr << "failed to create tensor w106" << std::endl; |
| 1359 | return nullptr; |
| 1360 | } |
| 1361 | |
| 1362 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(12288, float)> w107_data; |
| 1363 | uint32_t w107 = XNN_INVALID_VALUE_ID; |
| 1364 | std::array<size_t, 4> w107_dims = {{64, 1, 1, 192}}; |
| 1365 | status = xnn_define_tensor_value( |
| 1366 | subgraph, xnn_datatype_fp32, |
| 1367 | w107_dims.size(), w107_dims.data(), |
| 1368 | /*data=*/w107_data.data(), |
| 1369 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w107); |
| 1370 | if (status != xnn_status_success) { |
| 1371 | std::cerr << "failed to create tensor w107" << std::endl; |
| 1372 | return nullptr; |
| 1373 | } |
| 1374 | |
| 1375 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(64, float)> w108_data; |
| 1376 | uint32_t w108 = XNN_INVALID_VALUE_ID; |
| 1377 | std::array<size_t, 1> w108_dims = {{64}}; |
| 1378 | status = xnn_define_tensor_value( |
| 1379 | subgraph, xnn_datatype_fp32, |
| 1380 | w108_dims.size(), w108_dims.data(), |
| 1381 | /*data=*/w108_data.data(), |
| 1382 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w108); |
| 1383 | if (status != xnn_status_success) { |
| 1384 | std::cerr << "failed to create tensor w108" << std::endl; |
| 1385 | return nullptr; |
| 1386 | } |
| 1387 | |
| 1388 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w109_data; |
| 1389 | uint32_t w109 = XNN_INVALID_VALUE_ID; |
| 1390 | std::array<size_t, 4> w109_dims = {{384, 1, 1, 64}}; |
| 1391 | status = xnn_define_tensor_value( |
| 1392 | subgraph, xnn_datatype_fp32, |
| 1393 | w109_dims.size(), w109_dims.data(), |
| 1394 | /*data=*/w109_data.data(), |
| 1395 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w109); |
| 1396 | if (status != xnn_status_success) { |
| 1397 | std::cerr << "failed to create tensor w109" << std::endl; |
| 1398 | return nullptr; |
| 1399 | } |
| 1400 | |
| 1401 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w110_data; |
| 1402 | uint32_t w110 = XNN_INVALID_VALUE_ID; |
| 1403 | std::array<size_t, 1> w110_dims = {{384}}; |
| 1404 | status = xnn_define_tensor_value( |
| 1405 | subgraph, xnn_datatype_fp32, |
| 1406 | w110_dims.size(), w110_dims.data(), |
| 1407 | /*data=*/w110_data.data(), |
| 1408 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w110); |
| 1409 | if (status != xnn_status_success) { |
| 1410 | std::cerr << "failed to create tensor w110" << std::endl; |
| 1411 | return nullptr; |
| 1412 | } |
| 1413 | |
| 1414 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w111_data; |
| 1415 | uint32_t w111 = XNN_INVALID_VALUE_ID; |
| 1416 | std::array<size_t, 4> w111_dims = {{1, 3, 3, 384}}; |
| 1417 | status = xnn_define_tensor_value( |
| 1418 | subgraph, xnn_datatype_fp32, |
| 1419 | w111_dims.size(), w111_dims.data(), |
| 1420 | /*data=*/w111_data.data(), |
| 1421 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w111); |
| 1422 | if (status != xnn_status_success) { |
| 1423 | std::cerr << "failed to create tensor w111" << std::endl; |
| 1424 | return nullptr; |
| 1425 | } |
| 1426 | |
| 1427 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w112_data; |
| 1428 | uint32_t w112 = XNN_INVALID_VALUE_ID; |
| 1429 | std::array<size_t, 1> w112_dims = {{384}}; |
| 1430 | status = xnn_define_tensor_value( |
| 1431 | subgraph, xnn_datatype_fp32, |
| 1432 | w112_dims.size(), w112_dims.data(), |
| 1433 | /*data=*/w112_data.data(), |
| 1434 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w112); |
| 1435 | if (status != xnn_status_success) { |
| 1436 | std::cerr << "failed to create tensor w112" << std::endl; |
| 1437 | return nullptr; |
| 1438 | } |
| 1439 | |
| 1440 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w113_data; |
| 1441 | uint32_t w113 = XNN_INVALID_VALUE_ID; |
| 1442 | std::array<size_t, 4> w113_dims = {{64, 1, 1, 384}}; |
| 1443 | status = xnn_define_tensor_value( |
| 1444 | subgraph, xnn_datatype_fp32, |
| 1445 | w113_dims.size(), w113_dims.data(), |
| 1446 | /*data=*/w113_data.data(), |
| 1447 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w113); |
| 1448 | if (status != xnn_status_success) { |
| 1449 | std::cerr << "failed to create tensor w113" << std::endl; |
| 1450 | return nullptr; |
| 1451 | } |
| 1452 | |
| 1453 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(64, float)> w114_data; |
| 1454 | uint32_t w114 = XNN_INVALID_VALUE_ID; |
| 1455 | std::array<size_t, 1> w114_dims = {{64}}; |
| 1456 | status = xnn_define_tensor_value( |
| 1457 | subgraph, xnn_datatype_fp32, |
| 1458 | w114_dims.size(), w114_dims.data(), |
| 1459 | /*data=*/w114_data.data(), |
| 1460 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w114); |
| 1461 | if (status != xnn_status_success) { |
| 1462 | std::cerr << "failed to create tensor w114" << std::endl; |
| 1463 | return nullptr; |
| 1464 | } |
| 1465 | |
| 1466 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w115_data; |
| 1467 | uint32_t w115 = XNN_INVALID_VALUE_ID; |
| 1468 | std::array<size_t, 4> w115_dims = {{384, 1, 1, 64}}; |
| 1469 | status = xnn_define_tensor_value( |
| 1470 | subgraph, xnn_datatype_fp32, |
| 1471 | w115_dims.size(), w115_dims.data(), |
| 1472 | /*data=*/w115_data.data(), |
| 1473 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w115); |
| 1474 | if (status != xnn_status_success) { |
| 1475 | std::cerr << "failed to create tensor w115" << std::endl; |
| 1476 | return nullptr; |
| 1477 | } |
| 1478 | |
| 1479 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w116_data; |
| 1480 | uint32_t w116 = XNN_INVALID_VALUE_ID; |
| 1481 | std::array<size_t, 1> w116_dims = {{384}}; |
| 1482 | status = xnn_define_tensor_value( |
| 1483 | subgraph, xnn_datatype_fp32, |
| 1484 | w116_dims.size(), w116_dims.data(), |
| 1485 | /*data=*/w116_data.data(), |
| 1486 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w116); |
| 1487 | if (status != xnn_status_success) { |
| 1488 | std::cerr << "failed to create tensor w116" << std::endl; |
| 1489 | return nullptr; |
| 1490 | } |
| 1491 | |
| 1492 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w117_data; |
| 1493 | uint32_t w117 = XNN_INVALID_VALUE_ID; |
| 1494 | std::array<size_t, 4> w117_dims = {{1, 3, 3, 384}}; |
| 1495 | status = xnn_define_tensor_value( |
| 1496 | subgraph, xnn_datatype_fp32, |
| 1497 | w117_dims.size(), w117_dims.data(), |
| 1498 | /*data=*/w117_data.data(), |
| 1499 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w117); |
| 1500 | if (status != xnn_status_success) { |
| 1501 | std::cerr << "failed to create tensor w117" << std::endl; |
| 1502 | return nullptr; |
| 1503 | } |
| 1504 | |
| 1505 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w118_data; |
| 1506 | uint32_t w118 = XNN_INVALID_VALUE_ID; |
| 1507 | std::array<size_t, 1> w118_dims = {{384}}; |
| 1508 | status = xnn_define_tensor_value( |
| 1509 | subgraph, xnn_datatype_fp32, |
| 1510 | w118_dims.size(), w118_dims.data(), |
| 1511 | /*data=*/w118_data.data(), |
| 1512 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w118); |
| 1513 | if (status != xnn_status_success) { |
| 1514 | std::cerr << "failed to create tensor w118" << std::endl; |
| 1515 | return nullptr; |
| 1516 | } |
| 1517 | |
| 1518 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w119_data; |
| 1519 | uint32_t w119 = XNN_INVALID_VALUE_ID; |
| 1520 | std::array<size_t, 4> w119_dims = {{64, 1, 1, 384}}; |
| 1521 | status = xnn_define_tensor_value( |
| 1522 | subgraph, xnn_datatype_fp32, |
| 1523 | w119_dims.size(), w119_dims.data(), |
| 1524 | /*data=*/w119_data.data(), |
| 1525 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w119); |
| 1526 | if (status != xnn_status_success) { |
| 1527 | std::cerr << "failed to create tensor w119" << std::endl; |
| 1528 | return nullptr; |
| 1529 | } |
| 1530 | |
| 1531 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(64, float)> w120_data; |
| 1532 | uint32_t w120 = XNN_INVALID_VALUE_ID; |
| 1533 | std::array<size_t, 1> w120_dims = {{64}}; |
| 1534 | status = xnn_define_tensor_value( |
| 1535 | subgraph, xnn_datatype_fp32, |
| 1536 | w120_dims.size(), w120_dims.data(), |
| 1537 | /*data=*/w120_data.data(), |
| 1538 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w120); |
| 1539 | if (status != xnn_status_success) { |
| 1540 | std::cerr << "failed to create tensor w120" << std::endl; |
| 1541 | return nullptr; |
| 1542 | } |
| 1543 | |
| 1544 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w121_data; |
| 1545 | uint32_t w121 = XNN_INVALID_VALUE_ID; |
| 1546 | std::array<size_t, 4> w121_dims = {{384, 1, 1, 64}}; |
| 1547 | status = xnn_define_tensor_value( |
| 1548 | subgraph, xnn_datatype_fp32, |
| 1549 | w121_dims.size(), w121_dims.data(), |
| 1550 | /*data=*/w121_data.data(), |
| 1551 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w121); |
| 1552 | if (status != xnn_status_success) { |
| 1553 | std::cerr << "failed to create tensor w121" << std::endl; |
| 1554 | return nullptr; |
| 1555 | } |
| 1556 | |
| 1557 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w122_data; |
| 1558 | uint32_t w122 = XNN_INVALID_VALUE_ID; |
| 1559 | std::array<size_t, 1> w122_dims = {{384}}; |
| 1560 | status = xnn_define_tensor_value( |
| 1561 | subgraph, xnn_datatype_fp32, |
| 1562 | w122_dims.size(), w122_dims.data(), |
| 1563 | /*data=*/w122_data.data(), |
| 1564 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w122); |
| 1565 | if (status != xnn_status_success) { |
| 1566 | std::cerr << "failed to create tensor w122" << std::endl; |
| 1567 | return nullptr; |
| 1568 | } |
| 1569 | |
| 1570 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w123_data; |
| 1571 | uint32_t w123 = XNN_INVALID_VALUE_ID; |
| 1572 | std::array<size_t, 4> w123_dims = {{1, 3, 3, 384}}; |
| 1573 | status = xnn_define_tensor_value( |
| 1574 | subgraph, xnn_datatype_fp32, |
| 1575 | w123_dims.size(), w123_dims.data(), |
| 1576 | /*data=*/w123_data.data(), |
| 1577 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w123); |
| 1578 | if (status != xnn_status_success) { |
| 1579 | std::cerr << "failed to create tensor w123" << std::endl; |
| 1580 | return nullptr; |
| 1581 | } |
| 1582 | |
| 1583 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w124_data; |
| 1584 | uint32_t w124 = XNN_INVALID_VALUE_ID; |
| 1585 | std::array<size_t, 1> w124_dims = {{384}}; |
| 1586 | status = xnn_define_tensor_value( |
| 1587 | subgraph, xnn_datatype_fp32, |
| 1588 | w124_dims.size(), w124_dims.data(), |
| 1589 | /*data=*/w124_data.data(), |
| 1590 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w124); |
| 1591 | if (status != xnn_status_success) { |
| 1592 | std::cerr << "failed to create tensor w124" << std::endl; |
| 1593 | return nullptr; |
| 1594 | } |
| 1595 | |
| 1596 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w125_data; |
| 1597 | uint32_t w125 = XNN_INVALID_VALUE_ID; |
| 1598 | std::array<size_t, 4> w125_dims = {{64, 1, 1, 384}}; |
| 1599 | status = xnn_define_tensor_value( |
| 1600 | subgraph, xnn_datatype_fp32, |
| 1601 | w125_dims.size(), w125_dims.data(), |
| 1602 | /*data=*/w125_data.data(), |
| 1603 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w125); |
| 1604 | if (status != xnn_status_success) { |
| 1605 | std::cerr << "failed to create tensor w125" << std::endl; |
| 1606 | return nullptr; |
| 1607 | } |
| 1608 | |
| 1609 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(64, float)> w126_data; |
| 1610 | uint32_t w126 = XNN_INVALID_VALUE_ID; |
| 1611 | std::array<size_t, 1> w126_dims = {{64}}; |
| 1612 | status = xnn_define_tensor_value( |
| 1613 | subgraph, xnn_datatype_fp32, |
| 1614 | w126_dims.size(), w126_dims.data(), |
| 1615 | /*data=*/w126_data.data(), |
| 1616 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w126); |
| 1617 | if (status != xnn_status_success) { |
| 1618 | std::cerr << "failed to create tensor w126" << std::endl; |
| 1619 | return nullptr; |
| 1620 | } |
| 1621 | |
| 1622 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(24576, float)> w127_data; |
| 1623 | uint32_t w127 = XNN_INVALID_VALUE_ID; |
| 1624 | std::array<size_t, 4> w127_dims = {{384, 1, 1, 64}}; |
| 1625 | status = xnn_define_tensor_value( |
| 1626 | subgraph, xnn_datatype_fp32, |
| 1627 | w127_dims.size(), w127_dims.data(), |
| 1628 | /*data=*/w127_data.data(), |
| 1629 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w127); |
| 1630 | if (status != xnn_status_success) { |
| 1631 | std::cerr << "failed to create tensor w127" << std::endl; |
| 1632 | return nullptr; |
| 1633 | } |
| 1634 | |
| 1635 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w128_data; |
| 1636 | uint32_t w128 = XNN_INVALID_VALUE_ID; |
| 1637 | std::array<size_t, 1> w128_dims = {{384}}; |
| 1638 | status = xnn_define_tensor_value( |
| 1639 | subgraph, xnn_datatype_fp32, |
| 1640 | w128_dims.size(), w128_dims.data(), |
| 1641 | /*data=*/w128_data.data(), |
| 1642 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w128); |
| 1643 | if (status != xnn_status_success) { |
| 1644 | std::cerr << "failed to create tensor w128" << std::endl; |
| 1645 | return nullptr; |
| 1646 | } |
| 1647 | |
| 1648 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(3456, float)> w129_data; |
| 1649 | uint32_t w129 = XNN_INVALID_VALUE_ID; |
| 1650 | std::array<size_t, 4> w129_dims = {{1, 3, 3, 384}}; |
| 1651 | status = xnn_define_tensor_value( |
| 1652 | subgraph, xnn_datatype_fp32, |
| 1653 | w129_dims.size(), w129_dims.data(), |
| 1654 | /*data=*/w129_data.data(), |
| 1655 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w129); |
| 1656 | if (status != xnn_status_success) { |
| 1657 | std::cerr << "failed to create tensor w129" << std::endl; |
| 1658 | return nullptr; |
| 1659 | } |
| 1660 | |
| 1661 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(384, float)> w130_data; |
| 1662 | uint32_t w130 = XNN_INVALID_VALUE_ID; |
| 1663 | std::array<size_t, 1> w130_dims = {{384}}; |
| 1664 | status = xnn_define_tensor_value( |
| 1665 | subgraph, xnn_datatype_fp32, |
| 1666 | w130_dims.size(), w130_dims.data(), |
| 1667 | /*data=*/w130_data.data(), |
| 1668 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w130); |
| 1669 | if (status != xnn_status_success) { |
| 1670 | std::cerr << "failed to create tensor w130" << std::endl; |
| 1671 | return nullptr; |
| 1672 | } |
| 1673 | |
| 1674 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(36864, float)> w131_data; |
| 1675 | uint32_t w131 = XNN_INVALID_VALUE_ID; |
| 1676 | std::array<size_t, 4> w131_dims = {{96, 1, 1, 384}}; |
| 1677 | status = xnn_define_tensor_value( |
| 1678 | subgraph, xnn_datatype_fp32, |
| 1679 | w131_dims.size(), w131_dims.data(), |
| 1680 | /*data=*/w131_data.data(), |
| 1681 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w131); |
| 1682 | if (status != xnn_status_success) { |
| 1683 | std::cerr << "failed to create tensor w131" << std::endl; |
| 1684 | return nullptr; |
| 1685 | } |
| 1686 | |
| 1687 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(96, float)> w132_data; |
| 1688 | uint32_t w132 = XNN_INVALID_VALUE_ID; |
| 1689 | std::array<size_t, 1> w132_dims = {{96}}; |
| 1690 | status = xnn_define_tensor_value( |
| 1691 | subgraph, xnn_datatype_fp32, |
| 1692 | w132_dims.size(), w132_dims.data(), |
| 1693 | /*data=*/w132_data.data(), |
| 1694 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w132); |
| 1695 | if (status != xnn_status_success) { |
| 1696 | std::cerr << "failed to create tensor w132" << std::endl; |
| 1697 | return nullptr; |
| 1698 | } |
| 1699 | |
| 1700 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(55296, float)> w133_data; |
| 1701 | uint32_t w133 = XNN_INVALID_VALUE_ID; |
| 1702 | std::array<size_t, 4> w133_dims = {{576, 1, 1, 96}}; |
| 1703 | status = xnn_define_tensor_value( |
| 1704 | subgraph, xnn_datatype_fp32, |
| 1705 | w133_dims.size(), w133_dims.data(), |
| 1706 | /*data=*/w133_data.data(), |
| 1707 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w133); |
| 1708 | if (status != xnn_status_success) { |
| 1709 | std::cerr << "failed to create tensor w133" << std::endl; |
| 1710 | return nullptr; |
| 1711 | } |
| 1712 | |
| 1713 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w134_data; |
| 1714 | uint32_t w134 = XNN_INVALID_VALUE_ID; |
| 1715 | std::array<size_t, 1> w134_dims = {{576}}; |
| 1716 | status = xnn_define_tensor_value( |
| 1717 | subgraph, xnn_datatype_fp32, |
| 1718 | w134_dims.size(), w134_dims.data(), |
| 1719 | /*data=*/w134_data.data(), |
| 1720 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w134); |
| 1721 | if (status != xnn_status_success) { |
| 1722 | std::cerr << "failed to create tensor w134" << std::endl; |
| 1723 | return nullptr; |
| 1724 | } |
| 1725 | |
| 1726 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(5184, float)> w135_data; |
| 1727 | uint32_t w135 = XNN_INVALID_VALUE_ID; |
| 1728 | std::array<size_t, 4> w135_dims = {{1, 3, 3, 576}}; |
| 1729 | status = xnn_define_tensor_value( |
| 1730 | subgraph, xnn_datatype_fp32, |
| 1731 | w135_dims.size(), w135_dims.data(), |
| 1732 | /*data=*/w135_data.data(), |
| 1733 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w135); |
| 1734 | if (status != xnn_status_success) { |
| 1735 | std::cerr << "failed to create tensor w135" << std::endl; |
| 1736 | return nullptr; |
| 1737 | } |
| 1738 | |
| 1739 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w136_data; |
| 1740 | uint32_t w136 = XNN_INVALID_VALUE_ID; |
| 1741 | std::array<size_t, 1> w136_dims = {{576}}; |
| 1742 | status = xnn_define_tensor_value( |
| 1743 | subgraph, xnn_datatype_fp32, |
| 1744 | w136_dims.size(), w136_dims.data(), |
| 1745 | /*data=*/w136_data.data(), |
| 1746 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w136); |
| 1747 | if (status != xnn_status_success) { |
| 1748 | std::cerr << "failed to create tensor w136" << std::endl; |
| 1749 | return nullptr; |
| 1750 | } |
| 1751 | |
| 1752 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(55296, float)> w137_data; |
| 1753 | uint32_t w137 = XNN_INVALID_VALUE_ID; |
| 1754 | std::array<size_t, 4> w137_dims = {{96, 1, 1, 576}}; |
| 1755 | status = xnn_define_tensor_value( |
| 1756 | subgraph, xnn_datatype_fp32, |
| 1757 | w137_dims.size(), w137_dims.data(), |
| 1758 | /*data=*/w137_data.data(), |
| 1759 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w137); |
| 1760 | if (status != xnn_status_success) { |
| 1761 | std::cerr << "failed to create tensor w137" << std::endl; |
| 1762 | return nullptr; |
| 1763 | } |
| 1764 | |
| 1765 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(96, float)> w138_data; |
| 1766 | uint32_t w138 = XNN_INVALID_VALUE_ID; |
| 1767 | std::array<size_t, 1> w138_dims = {{96}}; |
| 1768 | status = xnn_define_tensor_value( |
| 1769 | subgraph, xnn_datatype_fp32, |
| 1770 | w138_dims.size(), w138_dims.data(), |
| 1771 | /*data=*/w138_data.data(), |
| 1772 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w138); |
| 1773 | if (status != xnn_status_success) { |
| 1774 | std::cerr << "failed to create tensor w138" << std::endl; |
| 1775 | return nullptr; |
| 1776 | } |
| 1777 | |
| 1778 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(55296, float)> w139_data; |
| 1779 | uint32_t w139 = XNN_INVALID_VALUE_ID; |
| 1780 | std::array<size_t, 4> w139_dims = {{576, 1, 1, 96}}; |
| 1781 | status = xnn_define_tensor_value( |
| 1782 | subgraph, xnn_datatype_fp32, |
| 1783 | w139_dims.size(), w139_dims.data(), |
| 1784 | /*data=*/w139_data.data(), |
| 1785 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w139); |
| 1786 | if (status != xnn_status_success) { |
| 1787 | std::cerr << "failed to create tensor w139" << std::endl; |
| 1788 | return nullptr; |
| 1789 | } |
| 1790 | |
| 1791 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w140_data; |
| 1792 | uint32_t w140 = XNN_INVALID_VALUE_ID; |
| 1793 | std::array<size_t, 1> w140_dims = {{576}}; |
| 1794 | status = xnn_define_tensor_value( |
| 1795 | subgraph, xnn_datatype_fp32, |
| 1796 | w140_dims.size(), w140_dims.data(), |
| 1797 | /*data=*/w140_data.data(), |
| 1798 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w140); |
| 1799 | if (status != xnn_status_success) { |
| 1800 | std::cerr << "failed to create tensor w140" << std::endl; |
| 1801 | return nullptr; |
| 1802 | } |
| 1803 | |
| 1804 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(5184, float)> w141_data; |
| 1805 | uint32_t w141 = XNN_INVALID_VALUE_ID; |
| 1806 | std::array<size_t, 4> w141_dims = {{1, 3, 3, 576}}; |
| 1807 | status = xnn_define_tensor_value( |
| 1808 | subgraph, xnn_datatype_fp32, |
| 1809 | w141_dims.size(), w141_dims.data(), |
| 1810 | /*data=*/w141_data.data(), |
| 1811 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w141); |
| 1812 | if (status != xnn_status_success) { |
| 1813 | std::cerr << "failed to create tensor w141" << std::endl; |
| 1814 | return nullptr; |
| 1815 | } |
| 1816 | |
| 1817 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w142_data; |
| 1818 | uint32_t w142 = XNN_INVALID_VALUE_ID; |
| 1819 | std::array<size_t, 1> w142_dims = {{576}}; |
| 1820 | status = xnn_define_tensor_value( |
| 1821 | subgraph, xnn_datatype_fp32, |
| 1822 | w142_dims.size(), w142_dims.data(), |
| 1823 | /*data=*/w142_data.data(), |
| 1824 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w142); |
| 1825 | if (status != xnn_status_success) { |
| 1826 | std::cerr << "failed to create tensor w142" << std::endl; |
| 1827 | return nullptr; |
| 1828 | } |
| 1829 | |
| 1830 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(55296, float)> w143_data; |
| 1831 | uint32_t w143 = XNN_INVALID_VALUE_ID; |
| 1832 | std::array<size_t, 4> w143_dims = {{96, 1, 1, 576}}; |
| 1833 | status = xnn_define_tensor_value( |
| 1834 | subgraph, xnn_datatype_fp32, |
| 1835 | w143_dims.size(), w143_dims.data(), |
| 1836 | /*data=*/w143_data.data(), |
| 1837 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w143); |
| 1838 | if (status != xnn_status_success) { |
| 1839 | std::cerr << "failed to create tensor w143" << std::endl; |
| 1840 | return nullptr; |
| 1841 | } |
| 1842 | |
| 1843 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(96, float)> w144_data; |
| 1844 | uint32_t w144 = XNN_INVALID_VALUE_ID; |
| 1845 | std::array<size_t, 1> w144_dims = {{96}}; |
| 1846 | status = xnn_define_tensor_value( |
| 1847 | subgraph, xnn_datatype_fp32, |
| 1848 | w144_dims.size(), w144_dims.data(), |
| 1849 | /*data=*/w144_data.data(), |
| 1850 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w144); |
| 1851 | if (status != xnn_status_success) { |
| 1852 | std::cerr << "failed to create tensor w144" << std::endl; |
| 1853 | return nullptr; |
| 1854 | } |
| 1855 | |
| 1856 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(55296, float)> w145_data; |
| 1857 | uint32_t w145 = XNN_INVALID_VALUE_ID; |
| 1858 | std::array<size_t, 4> w145_dims = {{576, 1, 1, 96}}; |
| 1859 | status = xnn_define_tensor_value( |
| 1860 | subgraph, xnn_datatype_fp32, |
| 1861 | w145_dims.size(), w145_dims.data(), |
| 1862 | /*data=*/w145_data.data(), |
| 1863 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w145); |
| 1864 | if (status != xnn_status_success) { |
| 1865 | std::cerr << "failed to create tensor w145" << std::endl; |
| 1866 | return nullptr; |
| 1867 | } |
| 1868 | |
| 1869 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w146_data; |
| 1870 | uint32_t w146 = XNN_INVALID_VALUE_ID; |
| 1871 | std::array<size_t, 1> w146_dims = {{576}}; |
| 1872 | status = xnn_define_tensor_value( |
| 1873 | subgraph, xnn_datatype_fp32, |
| 1874 | w146_dims.size(), w146_dims.data(), |
| 1875 | /*data=*/w146_data.data(), |
| 1876 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w146); |
| 1877 | if (status != xnn_status_success) { |
| 1878 | std::cerr << "failed to create tensor w146" << std::endl; |
| 1879 | return nullptr; |
| 1880 | } |
| 1881 | |
| 1882 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(5184, float)> w147_data; |
| 1883 | uint32_t w147 = XNN_INVALID_VALUE_ID; |
| 1884 | std::array<size_t, 4> w147_dims = {{1, 3, 3, 576}}; |
| 1885 | status = xnn_define_tensor_value( |
| 1886 | subgraph, xnn_datatype_fp32, |
| 1887 | w147_dims.size(), w147_dims.data(), |
| 1888 | /*data=*/w147_data.data(), |
| 1889 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w147); |
| 1890 | if (status != xnn_status_success) { |
| 1891 | std::cerr << "failed to create tensor w147" << std::endl; |
| 1892 | return nullptr; |
| 1893 | } |
| 1894 | |
| 1895 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(576, float)> w148_data; |
| 1896 | uint32_t w148 = XNN_INVALID_VALUE_ID; |
| 1897 | std::array<size_t, 1> w148_dims = {{576}}; |
| 1898 | status = xnn_define_tensor_value( |
| 1899 | subgraph, xnn_datatype_fp32, |
| 1900 | w148_dims.size(), w148_dims.data(), |
| 1901 | /*data=*/w148_data.data(), |
| 1902 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w148); |
| 1903 | if (status != xnn_status_success) { |
| 1904 | std::cerr << "failed to create tensor w148" << std::endl; |
| 1905 | return nullptr; |
| 1906 | } |
| 1907 | |
| 1908 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(92160, float)> w149_data; |
| 1909 | uint32_t w149 = XNN_INVALID_VALUE_ID; |
| 1910 | std::array<size_t, 4> w149_dims = {{160, 1, 1, 576}}; |
| 1911 | status = xnn_define_tensor_value( |
| 1912 | subgraph, xnn_datatype_fp32, |
| 1913 | w149_dims.size(), w149_dims.data(), |
| 1914 | /*data=*/w149_data.data(), |
| 1915 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w149); |
| 1916 | if (status != xnn_status_success) { |
| 1917 | std::cerr << "failed to create tensor w149" << std::endl; |
| 1918 | return nullptr; |
| 1919 | } |
| 1920 | |
| 1921 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(160, float)> w150_data; |
| 1922 | uint32_t w150 = XNN_INVALID_VALUE_ID; |
| 1923 | std::array<size_t, 1> w150_dims = {{160}}; |
| 1924 | status = xnn_define_tensor_value( |
| 1925 | subgraph, xnn_datatype_fp32, |
| 1926 | w150_dims.size(), w150_dims.data(), |
| 1927 | /*data=*/w150_data.data(), |
| 1928 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w150); |
| 1929 | if (status != xnn_status_success) { |
| 1930 | std::cerr << "failed to create tensor w150" << std::endl; |
| 1931 | return nullptr; |
| 1932 | } |
| 1933 | |
| 1934 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(153600, float)> w151_data; |
| 1935 | uint32_t w151 = XNN_INVALID_VALUE_ID; |
| 1936 | std::array<size_t, 4> w151_dims = {{960, 1, 1, 160}}; |
| 1937 | status = xnn_define_tensor_value( |
| 1938 | subgraph, xnn_datatype_fp32, |
| 1939 | w151_dims.size(), w151_dims.data(), |
| 1940 | /*data=*/w151_data.data(), |
| 1941 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w151); |
| 1942 | if (status != xnn_status_success) { |
| 1943 | std::cerr << "failed to create tensor w151" << std::endl; |
| 1944 | return nullptr; |
| 1945 | } |
| 1946 | |
| 1947 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w152_data; |
| 1948 | uint32_t w152 = XNN_INVALID_VALUE_ID; |
| 1949 | std::array<size_t, 1> w152_dims = {{960}}; |
| 1950 | status = xnn_define_tensor_value( |
| 1951 | subgraph, xnn_datatype_fp32, |
| 1952 | w152_dims.size(), w152_dims.data(), |
| 1953 | /*data=*/w152_data.data(), |
| 1954 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w152); |
| 1955 | if (status != xnn_status_success) { |
| 1956 | std::cerr << "failed to create tensor w152" << std::endl; |
| 1957 | return nullptr; |
| 1958 | } |
| 1959 | |
| 1960 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(8640, float)> w153_data; |
| 1961 | uint32_t w153 = XNN_INVALID_VALUE_ID; |
| 1962 | std::array<size_t, 4> w153_dims = {{1, 3, 3, 960}}; |
| 1963 | status = xnn_define_tensor_value( |
| 1964 | subgraph, xnn_datatype_fp32, |
| 1965 | w153_dims.size(), w153_dims.data(), |
| 1966 | /*data=*/w153_data.data(), |
| 1967 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w153); |
| 1968 | if (status != xnn_status_success) { |
| 1969 | std::cerr << "failed to create tensor w153" << std::endl; |
| 1970 | return nullptr; |
| 1971 | } |
| 1972 | |
| 1973 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w154_data; |
| 1974 | uint32_t w154 = XNN_INVALID_VALUE_ID; |
| 1975 | std::array<size_t, 1> w154_dims = {{960}}; |
| 1976 | status = xnn_define_tensor_value( |
| 1977 | subgraph, xnn_datatype_fp32, |
| 1978 | w154_dims.size(), w154_dims.data(), |
| 1979 | /*data=*/w154_data.data(), |
| 1980 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w154); |
| 1981 | if (status != xnn_status_success) { |
| 1982 | std::cerr << "failed to create tensor w154" << std::endl; |
| 1983 | return nullptr; |
| 1984 | } |
| 1985 | |
| 1986 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(153600, float)> w155_data; |
| 1987 | uint32_t w155 = XNN_INVALID_VALUE_ID; |
| 1988 | std::array<size_t, 4> w155_dims = {{160, 1, 1, 960}}; |
| 1989 | status = xnn_define_tensor_value( |
| 1990 | subgraph, xnn_datatype_fp32, |
| 1991 | w155_dims.size(), w155_dims.data(), |
| 1992 | /*data=*/w155_data.data(), |
| 1993 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w155); |
| 1994 | if (status != xnn_status_success) { |
| 1995 | std::cerr << "failed to create tensor w155" << std::endl; |
| 1996 | return nullptr; |
| 1997 | } |
| 1998 | |
| 1999 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(160, float)> w156_data; |
| 2000 | uint32_t w156 = XNN_INVALID_VALUE_ID; |
| 2001 | std::array<size_t, 1> w156_dims = {{160}}; |
| 2002 | status = xnn_define_tensor_value( |
| 2003 | subgraph, xnn_datatype_fp32, |
| 2004 | w156_dims.size(), w156_dims.data(), |
| 2005 | /*data=*/w156_data.data(), |
| 2006 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w156); |
| 2007 | if (status != xnn_status_success) { |
| 2008 | std::cerr << "failed to create tensor w156" << std::endl; |
| 2009 | return nullptr; |
| 2010 | } |
| 2011 | |
| 2012 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(153600, float)> w157_data; |
| 2013 | uint32_t w157 = XNN_INVALID_VALUE_ID; |
| 2014 | std::array<size_t, 4> w157_dims = {{960, 1, 1, 160}}; |
| 2015 | status = xnn_define_tensor_value( |
| 2016 | subgraph, xnn_datatype_fp32, |
| 2017 | w157_dims.size(), w157_dims.data(), |
| 2018 | /*data=*/w157_data.data(), |
| 2019 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w157); |
| 2020 | if (status != xnn_status_success) { |
| 2021 | std::cerr << "failed to create tensor w157" << std::endl; |
| 2022 | return nullptr; |
| 2023 | } |
| 2024 | |
| 2025 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w158_data; |
| 2026 | uint32_t w158 = XNN_INVALID_VALUE_ID; |
| 2027 | std::array<size_t, 1> w158_dims = {{960}}; |
| 2028 | status = xnn_define_tensor_value( |
| 2029 | subgraph, xnn_datatype_fp32, |
| 2030 | w158_dims.size(), w158_dims.data(), |
| 2031 | /*data=*/w158_data.data(), |
| 2032 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w158); |
| 2033 | if (status != xnn_status_success) { |
| 2034 | std::cerr << "failed to create tensor w158" << std::endl; |
| 2035 | return nullptr; |
| 2036 | } |
| 2037 | |
| 2038 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(8640, float)> w159_data; |
| 2039 | uint32_t w159 = XNN_INVALID_VALUE_ID; |
| 2040 | std::array<size_t, 4> w159_dims = {{1, 3, 3, 960}}; |
| 2041 | status = xnn_define_tensor_value( |
| 2042 | subgraph, xnn_datatype_fp32, |
| 2043 | w159_dims.size(), w159_dims.data(), |
| 2044 | /*data=*/w159_data.data(), |
| 2045 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w159); |
| 2046 | if (status != xnn_status_success) { |
| 2047 | std::cerr << "failed to create tensor w159" << std::endl; |
| 2048 | return nullptr; |
| 2049 | } |
| 2050 | |
| 2051 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w160_data; |
| 2052 | uint32_t w160 = XNN_INVALID_VALUE_ID; |
| 2053 | std::array<size_t, 1> w160_dims = {{960}}; |
| 2054 | status = xnn_define_tensor_value( |
| 2055 | subgraph, xnn_datatype_fp32, |
| 2056 | w160_dims.size(), w160_dims.data(), |
| 2057 | /*data=*/w160_data.data(), |
| 2058 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w160); |
| 2059 | if (status != xnn_status_success) { |
| 2060 | std::cerr << "failed to create tensor w160" << std::endl; |
| 2061 | return nullptr; |
| 2062 | } |
| 2063 | |
| 2064 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(153600, float)> w161_data; |
| 2065 | uint32_t w161 = XNN_INVALID_VALUE_ID; |
| 2066 | std::array<size_t, 4> w161_dims = {{160, 1, 1, 960}}; |
| 2067 | status = xnn_define_tensor_value( |
| 2068 | subgraph, xnn_datatype_fp32, |
| 2069 | w161_dims.size(), w161_dims.data(), |
| 2070 | /*data=*/w161_data.data(), |
| 2071 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w161); |
| 2072 | if (status != xnn_status_success) { |
| 2073 | std::cerr << "failed to create tensor w161" << std::endl; |
| 2074 | return nullptr; |
| 2075 | } |
| 2076 | |
| 2077 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(160, float)> w162_data; |
| 2078 | uint32_t w162 = XNN_INVALID_VALUE_ID; |
| 2079 | std::array<size_t, 1> w162_dims = {{160}}; |
| 2080 | status = xnn_define_tensor_value( |
| 2081 | subgraph, xnn_datatype_fp32, |
| 2082 | w162_dims.size(), w162_dims.data(), |
| 2083 | /*data=*/w162_data.data(), |
| 2084 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w162); |
| 2085 | if (status != xnn_status_success) { |
| 2086 | std::cerr << "failed to create tensor w162" << std::endl; |
| 2087 | return nullptr; |
| 2088 | } |
| 2089 | |
| 2090 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(153600, float)> w163_data; |
| 2091 | uint32_t w163 = XNN_INVALID_VALUE_ID; |
| 2092 | std::array<size_t, 4> w163_dims = {{960, 1, 1, 160}}; |
| 2093 | status = xnn_define_tensor_value( |
| 2094 | subgraph, xnn_datatype_fp32, |
| 2095 | w163_dims.size(), w163_dims.data(), |
| 2096 | /*data=*/w163_data.data(), |
| 2097 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w163); |
| 2098 | if (status != xnn_status_success) { |
| 2099 | std::cerr << "failed to create tensor w163" << std::endl; |
| 2100 | return nullptr; |
| 2101 | } |
| 2102 | |
| 2103 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w164_data; |
| 2104 | uint32_t w164 = XNN_INVALID_VALUE_ID; |
| 2105 | std::array<size_t, 1> w164_dims = {{960}}; |
| 2106 | status = xnn_define_tensor_value( |
| 2107 | subgraph, xnn_datatype_fp32, |
| 2108 | w164_dims.size(), w164_dims.data(), |
| 2109 | /*data=*/w164_data.data(), |
| 2110 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w164); |
| 2111 | if (status != xnn_status_success) { |
| 2112 | std::cerr << "failed to create tensor w164" << std::endl; |
| 2113 | return nullptr; |
| 2114 | } |
| 2115 | |
| 2116 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(8640, float)> w165_data; |
| 2117 | uint32_t w165 = XNN_INVALID_VALUE_ID; |
| 2118 | std::array<size_t, 4> w165_dims = {{1, 3, 3, 960}}; |
| 2119 | status = xnn_define_tensor_value( |
| 2120 | subgraph, xnn_datatype_fp32, |
| 2121 | w165_dims.size(), w165_dims.data(), |
| 2122 | /*data=*/w165_data.data(), |
| 2123 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w165); |
| 2124 | if (status != xnn_status_success) { |
| 2125 | std::cerr << "failed to create tensor w165" << std::endl; |
| 2126 | return nullptr; |
| 2127 | } |
| 2128 | |
| 2129 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(960, float)> w166_data; |
| 2130 | uint32_t w166 = XNN_INVALID_VALUE_ID; |
| 2131 | std::array<size_t, 1> w166_dims = {{960}}; |
| 2132 | status = xnn_define_tensor_value( |
| 2133 | subgraph, xnn_datatype_fp32, |
| 2134 | w166_dims.size(), w166_dims.data(), |
| 2135 | /*data=*/w166_data.data(), |
| 2136 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w166); |
| 2137 | if (status != xnn_status_success) { |
| 2138 | std::cerr << "failed to create tensor w166" << std::endl; |
| 2139 | return nullptr; |
| 2140 | } |
| 2141 | |
| 2142 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(307200, float)> w167_data; |
| 2143 | uint32_t w167 = XNN_INVALID_VALUE_ID; |
| 2144 | std::array<size_t, 4> w167_dims = {{320, 1, 1, 960}}; |
| 2145 | status = xnn_define_tensor_value( |
| 2146 | subgraph, xnn_datatype_fp32, |
| 2147 | w167_dims.size(), w167_dims.data(), |
| 2148 | /*data=*/w167_data.data(), |
| 2149 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w167); |
| 2150 | if (status != xnn_status_success) { |
| 2151 | std::cerr << "failed to create tensor w167" << std::endl; |
| 2152 | return nullptr; |
| 2153 | } |
| 2154 | |
| 2155 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(320, float)> w168_data; |
| 2156 | uint32_t w168 = XNN_INVALID_VALUE_ID; |
| 2157 | std::array<size_t, 1> w168_dims = {{320}}; |
| 2158 | status = xnn_define_tensor_value( |
| 2159 | subgraph, xnn_datatype_fp32, |
| 2160 | w168_dims.size(), w168_dims.data(), |
| 2161 | /*data=*/w168_data.data(), |
| 2162 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w168); |
| 2163 | if (status != xnn_status_success) { |
| 2164 | std::cerr << "failed to create tensor w168" << std::endl; |
| 2165 | return nullptr; |
| 2166 | } |
| 2167 | |
| 2168 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(409600, float)> w169_data; |
| 2169 | uint32_t w169 = XNN_INVALID_VALUE_ID; |
| 2170 | std::array<size_t, 4> w169_dims = {{1280, 1, 1, 320}}; |
| 2171 | status = xnn_define_tensor_value( |
| 2172 | subgraph, xnn_datatype_fp32, |
| 2173 | w169_dims.size(), w169_dims.data(), |
| 2174 | /*data=*/w169_data.data(), |
| 2175 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w169); |
| 2176 | if (status != xnn_status_success) { |
| 2177 | std::cerr << "failed to create tensor w169" << std::endl; |
| 2178 | return nullptr; |
| 2179 | } |
| 2180 | |
| 2181 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1280, float)> w170_data; |
| 2182 | uint32_t w170 = XNN_INVALID_VALUE_ID; |
| 2183 | std::array<size_t, 1> w170_dims = {{1280}}; |
| 2184 | status = xnn_define_tensor_value( |
| 2185 | subgraph, xnn_datatype_fp32, |
| 2186 | w170_dims.size(), w170_dims.data(), |
| 2187 | /*data=*/w170_data.data(), |
| 2188 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w170); |
| 2189 | if (status != xnn_status_success) { |
| 2190 | std::cerr << "failed to create tensor w170" << std::endl; |
| 2191 | return nullptr; |
| 2192 | } |
| 2193 | |
| 2194 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1281280, float)> w171_data; |
| 2195 | uint32_t w171 = XNN_INVALID_VALUE_ID; |
| 2196 | std::array<size_t, 4> w171_dims = {{1001, 1, 1, 1280}}; |
| 2197 | status = xnn_define_tensor_value( |
| 2198 | subgraph, xnn_datatype_fp32, |
| 2199 | w171_dims.size(), w171_dims.data(), |
| 2200 | /*data=*/w171_data.data(), |
| 2201 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w171); |
| 2202 | if (status != xnn_status_success) { |
| 2203 | std::cerr << "failed to create tensor w171" << std::endl; |
| 2204 | return nullptr; |
| 2205 | } |
| 2206 | |
| 2207 | alignas(16) static std::array<float, XNN_PAD_EXTRA_BYTES(1001, float)> w172_data; |
| 2208 | uint32_t w172 = XNN_INVALID_VALUE_ID; |
| 2209 | std::array<size_t, 1> w172_dims = {{1001}}; |
| 2210 | status = xnn_define_tensor_value( |
| 2211 | subgraph, xnn_datatype_fp32, |
| 2212 | w172_dims.size(), w172_dims.data(), |
| 2213 | /*data=*/w172_data.data(), |
| 2214 | XNN_INVALID_VALUE_ID, /*flags=*/0, &w172); |
| 2215 | if (status != xnn_status_success) { |
| 2216 | std::cerr << "failed to create tensor w172" << std::endl; |
| 2217 | return nullptr; |
| 2218 | } |
| 2219 | |
| 2220 | auto f32rng = std::bind(std::uniform_real_distribution<float>(-1.0f, +1.0f), std::ref(rng)); |
| 2221 | std::generate(w67_data.begin(), w67_data.end(), std::ref(f32rng)); |
| 2222 | std::generate(w68_data.begin(), w68_data.end(), std::ref(f32rng)); |
| 2223 | std::generate(w69_data.begin(), w69_data.end(), std::ref(f32rng)); |
| 2224 | std::generate(w70_data.begin(), w70_data.end(), std::ref(f32rng)); |
| 2225 | std::generate(w71_data.begin(), w71_data.end(), std::ref(f32rng)); |
| 2226 | std::generate(w72_data.begin(), w72_data.end(), std::ref(f32rng)); |
| 2227 | std::generate(w73_data.begin(), w73_data.end(), std::ref(f32rng)); |
| 2228 | std::generate(w74_data.begin(), w74_data.end(), std::ref(f32rng)); |
| 2229 | std::generate(w75_data.begin(), w75_data.end(), std::ref(f32rng)); |
| 2230 | std::generate(w76_data.begin(), w76_data.end(), std::ref(f32rng)); |
| 2231 | std::generate(w77_data.begin(), w77_data.end(), std::ref(f32rng)); |
| 2232 | std::generate(w78_data.begin(), w78_data.end(), std::ref(f32rng)); |
| 2233 | std::generate(w79_data.begin(), w79_data.end(), std::ref(f32rng)); |
| 2234 | std::generate(w80_data.begin(), w80_data.end(), std::ref(f32rng)); |
| 2235 | std::generate(w81_data.begin(), w81_data.end(), std::ref(f32rng)); |
| 2236 | std::generate(w82_data.begin(), w82_data.end(), std::ref(f32rng)); |
| 2237 | std::generate(w83_data.begin(), w83_data.end(), std::ref(f32rng)); |
| 2238 | std::generate(w84_data.begin(), w84_data.end(), std::ref(f32rng)); |
| 2239 | std::generate(w85_data.begin(), w85_data.end(), std::ref(f32rng)); |
| 2240 | std::generate(w86_data.begin(), w86_data.end(), std::ref(f32rng)); |
| 2241 | std::generate(w87_data.begin(), w87_data.end(), std::ref(f32rng)); |
| 2242 | std::generate(w88_data.begin(), w88_data.end(), std::ref(f32rng)); |
| 2243 | std::generate(w89_data.begin(), w89_data.end(), std::ref(f32rng)); |
| 2244 | std::generate(w90_data.begin(), w90_data.end(), std::ref(f32rng)); |
| 2245 | std::generate(w91_data.begin(), w91_data.end(), std::ref(f32rng)); |
| 2246 | std::generate(w92_data.begin(), w92_data.end(), std::ref(f32rng)); |
| 2247 | std::generate(w93_data.begin(), w93_data.end(), std::ref(f32rng)); |
| 2248 | std::generate(w94_data.begin(), w94_data.end(), std::ref(f32rng)); |
| 2249 | std::generate(w95_data.begin(), w95_data.end(), std::ref(f32rng)); |
| 2250 | std::generate(w96_data.begin(), w96_data.end(), std::ref(f32rng)); |
| 2251 | std::generate(w97_data.begin(), w97_data.end(), std::ref(f32rng)); |
| 2252 | std::generate(w98_data.begin(), w98_data.end(), std::ref(f32rng)); |
| 2253 | std::generate(w99_data.begin(), w99_data.end(), std::ref(f32rng)); |
| 2254 | std::generate(w100_data.begin(), w100_data.end(), std::ref(f32rng)); |
| 2255 | std::generate(w101_data.begin(), w101_data.end(), std::ref(f32rng)); |
| 2256 | std::generate(w102_data.begin(), w102_data.end(), std::ref(f32rng)); |
| 2257 | std::generate(w103_data.begin(), w103_data.end(), std::ref(f32rng)); |
| 2258 | std::generate(w104_data.begin(), w104_data.end(), std::ref(f32rng)); |
| 2259 | std::generate(w105_data.begin(), w105_data.end(), std::ref(f32rng)); |
| 2260 | std::generate(w106_data.begin(), w106_data.end(), std::ref(f32rng)); |
| 2261 | std::generate(w107_data.begin(), w107_data.end(), std::ref(f32rng)); |
| 2262 | std::generate(w108_data.begin(), w108_data.end(), std::ref(f32rng)); |
| 2263 | std::generate(w109_data.begin(), w109_data.end(), std::ref(f32rng)); |
| 2264 | std::generate(w110_data.begin(), w110_data.end(), std::ref(f32rng)); |
| 2265 | std::generate(w111_data.begin(), w111_data.end(), std::ref(f32rng)); |
| 2266 | std::generate(w112_data.begin(), w112_data.end(), std::ref(f32rng)); |
| 2267 | std::generate(w113_data.begin(), w113_data.end(), std::ref(f32rng)); |
| 2268 | std::generate(w114_data.begin(), w114_data.end(), std::ref(f32rng)); |
| 2269 | std::generate(w115_data.begin(), w115_data.end(), std::ref(f32rng)); |
| 2270 | std::generate(w116_data.begin(), w116_data.end(), std::ref(f32rng)); |
| 2271 | std::generate(w117_data.begin(), w117_data.end(), std::ref(f32rng)); |
| 2272 | std::generate(w118_data.begin(), w118_data.end(), std::ref(f32rng)); |
| 2273 | std::generate(w119_data.begin(), w119_data.end(), std::ref(f32rng)); |
| 2274 | std::generate(w120_data.begin(), w120_data.end(), std::ref(f32rng)); |
| 2275 | std::generate(w121_data.begin(), w121_data.end(), std::ref(f32rng)); |
| 2276 | std::generate(w122_data.begin(), w122_data.end(), std::ref(f32rng)); |
| 2277 | std::generate(w123_data.begin(), w123_data.end(), std::ref(f32rng)); |
| 2278 | std::generate(w124_data.begin(), w124_data.end(), std::ref(f32rng)); |
| 2279 | std::generate(w125_data.begin(), w125_data.end(), std::ref(f32rng)); |
| 2280 | std::generate(w126_data.begin(), w126_data.end(), std::ref(f32rng)); |
| 2281 | std::generate(w127_data.begin(), w127_data.end(), std::ref(f32rng)); |
| 2282 | std::generate(w128_data.begin(), w128_data.end(), std::ref(f32rng)); |
| 2283 | std::generate(w129_data.begin(), w129_data.end(), std::ref(f32rng)); |
| 2284 | std::generate(w130_data.begin(), w130_data.end(), std::ref(f32rng)); |
| 2285 | std::generate(w131_data.begin(), w131_data.end(), std::ref(f32rng)); |
| 2286 | std::generate(w132_data.begin(), w132_data.end(), std::ref(f32rng)); |
| 2287 | std::generate(w133_data.begin(), w133_data.end(), std::ref(f32rng)); |
| 2288 | std::generate(w134_data.begin(), w134_data.end(), std::ref(f32rng)); |
| 2289 | std::generate(w135_data.begin(), w135_data.end(), std::ref(f32rng)); |
| 2290 | std::generate(w136_data.begin(), w136_data.end(), std::ref(f32rng)); |
| 2291 | std::generate(w137_data.begin(), w137_data.end(), std::ref(f32rng)); |
| 2292 | std::generate(w138_data.begin(), w138_data.end(), std::ref(f32rng)); |
| 2293 | std::generate(w139_data.begin(), w139_data.end(), std::ref(f32rng)); |
| 2294 | std::generate(w140_data.begin(), w140_data.end(), std::ref(f32rng)); |
| 2295 | std::generate(w141_data.begin(), w141_data.end(), std::ref(f32rng)); |
| 2296 | std::generate(w142_data.begin(), w142_data.end(), std::ref(f32rng)); |
| 2297 | std::generate(w143_data.begin(), w143_data.end(), std::ref(f32rng)); |
| 2298 | std::generate(w144_data.begin(), w144_data.end(), std::ref(f32rng)); |
| 2299 | std::generate(w145_data.begin(), w145_data.end(), std::ref(f32rng)); |
| 2300 | std::generate(w146_data.begin(), w146_data.end(), std::ref(f32rng)); |
| 2301 | std::generate(w147_data.begin(), w147_data.end(), std::ref(f32rng)); |
| 2302 | std::generate(w148_data.begin(), w148_data.end(), std::ref(f32rng)); |
| 2303 | std::generate(w149_data.begin(), w149_data.end(), std::ref(f32rng)); |
| 2304 | std::generate(w150_data.begin(), w150_data.end(), std::ref(f32rng)); |
| 2305 | std::generate(w151_data.begin(), w151_data.end(), std::ref(f32rng)); |
| 2306 | std::generate(w152_data.begin(), w152_data.end(), std::ref(f32rng)); |
| 2307 | std::generate(w153_data.begin(), w153_data.end(), std::ref(f32rng)); |
| 2308 | std::generate(w154_data.begin(), w154_data.end(), std::ref(f32rng)); |
| 2309 | std::generate(w155_data.begin(), w155_data.end(), std::ref(f32rng)); |
| 2310 | std::generate(w156_data.begin(), w156_data.end(), std::ref(f32rng)); |
| 2311 | std::generate(w157_data.begin(), w157_data.end(), std::ref(f32rng)); |
| 2312 | std::generate(w158_data.begin(), w158_data.end(), std::ref(f32rng)); |
| 2313 | std::generate(w159_data.begin(), w159_data.end(), std::ref(f32rng)); |
| 2314 | std::generate(w160_data.begin(), w160_data.end(), std::ref(f32rng)); |
| 2315 | std::generate(w161_data.begin(), w161_data.end(), std::ref(f32rng)); |
| 2316 | std::generate(w162_data.begin(), w162_data.end(), std::ref(f32rng)); |
| 2317 | std::generate(w163_data.begin(), w163_data.end(), std::ref(f32rng)); |
| 2318 | std::generate(w164_data.begin(), w164_data.end(), std::ref(f32rng)); |
| 2319 | std::generate(w165_data.begin(), w165_data.end(), std::ref(f32rng)); |
| 2320 | std::generate(w166_data.begin(), w166_data.end(), std::ref(f32rng)); |
| 2321 | std::generate(w167_data.begin(), w167_data.end(), std::ref(f32rng)); |
| 2322 | std::generate(w168_data.begin(), w168_data.end(), std::ref(f32rng)); |
| 2323 | std::generate(w169_data.begin(), w169_data.end(), std::ref(f32rng)); |
| 2324 | std::generate(w170_data.begin(), w170_data.end(), std::ref(f32rng)); |
| 2325 | std::generate(w171_data.begin(), w171_data.end(), std::ref(f32rng)); |
| 2326 | std::generate(w172_data.begin(), w172_data.end(), std::ref(f32rng)); |
| 2327 | |
| 2328 | status = xnn_define_convolution_2d( |
| 2329 | subgraph, |
| 2330 | /*padding_top=*/0, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/0, |
| 2331 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2332 | /*subsampling_height=*/2, /*subsampling_width=*/2, |
| 2333 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2334 | /*groups=*/1, |
| 2335 | /*group_input_channels=*/3, |
| 2336 | /*group_output_channels=*/32, |
| 2337 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2338 | v0, |
| 2339 | w67, |
| 2340 | w68, |
| 2341 | v1, |
| 2342 | /*flags=*/0); |
| 2343 | if (status != xnn_status_success) { |
| 2344 | std::cerr << "failed to create node #0" << std::endl; |
| 2345 | return nullptr; |
| 2346 | } |
| 2347 | |
| 2348 | status = xnn_define_depthwise_convolution_2d( |
| 2349 | subgraph, |
| 2350 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2351 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2352 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2353 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2354 | /*depth_multiplier=*/1, |
| 2355 | /*input_channels=*/32, |
| 2356 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2357 | v1, |
| 2358 | w69, |
| 2359 | w70, |
| 2360 | v2, |
| 2361 | /*flags=*/0); |
| 2362 | if (status != xnn_status_success) { |
| 2363 | std::cerr << "failed to create node #1" << std::endl; |
| 2364 | return nullptr; |
| 2365 | } |
| 2366 | |
| 2367 | status = xnn_define_convolution_2d( |
| 2368 | subgraph, |
| 2369 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2370 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2371 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2372 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2373 | /*groups=*/1, |
| 2374 | /*group_input_channels=*/32, |
| 2375 | /*group_output_channels=*/16, |
| 2376 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2377 | v2, |
| 2378 | w71, |
| 2379 | w72, |
| 2380 | v3, |
| 2381 | /*flags=*/0); |
| 2382 | if (status != xnn_status_success) { |
| 2383 | std::cerr << "failed to create node #2" << std::endl; |
| 2384 | return nullptr; |
| 2385 | } |
| 2386 | |
| 2387 | status = xnn_define_convolution_2d( |
| 2388 | subgraph, |
| 2389 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2390 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2391 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2392 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2393 | /*groups=*/1, |
| 2394 | /*group_input_channels=*/16, |
| 2395 | /*group_output_channels=*/96, |
| 2396 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2397 | v3, |
| 2398 | w73, |
| 2399 | w74, |
| 2400 | v4, |
| 2401 | /*flags=*/0); |
| 2402 | if (status != xnn_status_success) { |
| 2403 | std::cerr << "failed to create node #3" << std::endl; |
| 2404 | return nullptr; |
| 2405 | } |
| 2406 | |
| 2407 | status = xnn_define_depthwise_convolution_2d( |
| 2408 | subgraph, |
| 2409 | /*padding_top=*/0, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/0, |
| 2410 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2411 | /*subsampling_height=*/2, /*subsampling_width=*/2, |
| 2412 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2413 | /*depth_multiplier=*/1, |
| 2414 | /*input_channels=*/96, |
| 2415 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2416 | v4, |
| 2417 | w75, |
| 2418 | w76, |
| 2419 | v5, |
| 2420 | /*flags=*/0); |
| 2421 | if (status != xnn_status_success) { |
| 2422 | std::cerr << "failed to create node #4" << std::endl; |
| 2423 | return nullptr; |
| 2424 | } |
| 2425 | |
| 2426 | status = xnn_define_convolution_2d( |
| 2427 | subgraph, |
| 2428 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2429 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2430 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2431 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2432 | /*groups=*/1, |
| 2433 | /*group_input_channels=*/96, |
| 2434 | /*group_output_channels=*/24, |
| 2435 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2436 | v5, |
| 2437 | w77, |
| 2438 | w78, |
| 2439 | v6, |
| 2440 | /*flags=*/0); |
| 2441 | if (status != xnn_status_success) { |
| 2442 | std::cerr << "failed to create node #5" << std::endl; |
| 2443 | return nullptr; |
| 2444 | } |
| 2445 | |
| 2446 | status = xnn_define_convolution_2d( |
| 2447 | subgraph, |
| 2448 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2449 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2450 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2451 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2452 | /*groups=*/1, |
| 2453 | /*group_input_channels=*/24, |
| 2454 | /*group_output_channels=*/144, |
| 2455 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2456 | v6, |
| 2457 | w79, |
| 2458 | w80, |
| 2459 | v7, |
| 2460 | /*flags=*/0); |
| 2461 | if (status != xnn_status_success) { |
| 2462 | std::cerr << "failed to create node #6" << std::endl; |
| 2463 | return nullptr; |
| 2464 | } |
| 2465 | |
| 2466 | status = xnn_define_depthwise_convolution_2d( |
| 2467 | subgraph, |
| 2468 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2469 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2470 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2471 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2472 | /*depth_multiplier=*/1, |
| 2473 | /*input_channels=*/144, |
| 2474 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2475 | v7, |
| 2476 | w81, |
| 2477 | w82, |
| 2478 | v8, |
| 2479 | /*flags=*/0); |
| 2480 | if (status != xnn_status_success) { |
| 2481 | std::cerr << "failed to create node #7" << std::endl; |
| 2482 | return nullptr; |
| 2483 | } |
| 2484 | |
| 2485 | status = xnn_define_convolution_2d( |
| 2486 | subgraph, |
| 2487 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2488 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2489 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2490 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2491 | /*groups=*/1, |
| 2492 | /*group_input_channels=*/144, |
| 2493 | /*group_output_channels=*/24, |
| 2494 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2495 | v8, |
| 2496 | w83, |
| 2497 | w84, |
| 2498 | v9, |
| 2499 | /*flags=*/0); |
| 2500 | if (status != xnn_status_success) { |
| 2501 | std::cerr << "failed to create node #8" << std::endl; |
| 2502 | return nullptr; |
| 2503 | } |
| 2504 | |
| 2505 | xnn_binary_params v10_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2506 | status = xnn_define_binary( |
| 2507 | subgraph, |
| 2508 | xnn_binary_add, |
| 2509 | &v10_params, |
| 2510 | v9, |
| 2511 | v6, |
| 2512 | v10, |
| 2513 | /*flags=*/0); |
| 2514 | if (status != xnn_status_success) { |
| 2515 | std::cerr << "failed to create node #9" << std::endl; |
| 2516 | return nullptr; |
| 2517 | } |
| 2518 | |
| 2519 | status = xnn_define_convolution_2d( |
| 2520 | subgraph, |
| 2521 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2522 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2523 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2524 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2525 | /*groups=*/1, |
| 2526 | /*group_input_channels=*/24, |
| 2527 | /*group_output_channels=*/144, |
| 2528 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2529 | v10, |
| 2530 | w85, |
| 2531 | w86, |
| 2532 | v11, |
| 2533 | /*flags=*/0); |
| 2534 | if (status != xnn_status_success) { |
| 2535 | std::cerr << "failed to create node #10" << std::endl; |
| 2536 | return nullptr; |
| 2537 | } |
| 2538 | |
| 2539 | status = xnn_define_depthwise_convolution_2d( |
| 2540 | subgraph, |
| 2541 | /*padding_top=*/0, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/0, |
| 2542 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2543 | /*subsampling_height=*/2, /*subsampling_width=*/2, |
| 2544 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2545 | /*depth_multiplier=*/1, |
| 2546 | /*input_channels=*/144, |
| 2547 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2548 | v11, |
| 2549 | w87, |
| 2550 | w88, |
| 2551 | v12, |
| 2552 | /*flags=*/0); |
| 2553 | if (status != xnn_status_success) { |
| 2554 | std::cerr << "failed to create node #11" << std::endl; |
| 2555 | return nullptr; |
| 2556 | } |
| 2557 | |
| 2558 | status = xnn_define_convolution_2d( |
| 2559 | subgraph, |
| 2560 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2561 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2562 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2563 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2564 | /*groups=*/1, |
| 2565 | /*group_input_channels=*/144, |
| 2566 | /*group_output_channels=*/32, |
| 2567 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2568 | v12, |
| 2569 | w89, |
| 2570 | w90, |
| 2571 | v13, |
| 2572 | /*flags=*/0); |
| 2573 | if (status != xnn_status_success) { |
| 2574 | std::cerr << "failed to create node #12" << std::endl; |
| 2575 | return nullptr; |
| 2576 | } |
| 2577 | |
| 2578 | status = xnn_define_convolution_2d( |
| 2579 | subgraph, |
| 2580 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2581 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2582 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2583 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2584 | /*groups=*/1, |
| 2585 | /*group_input_channels=*/32, |
| 2586 | /*group_output_channels=*/192, |
| 2587 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2588 | v13, |
| 2589 | w91, |
| 2590 | w92, |
| 2591 | v14, |
| 2592 | /*flags=*/0); |
| 2593 | if (status != xnn_status_success) { |
| 2594 | std::cerr << "failed to create node #13" << std::endl; |
| 2595 | return nullptr; |
| 2596 | } |
| 2597 | |
| 2598 | status = xnn_define_depthwise_convolution_2d( |
| 2599 | subgraph, |
| 2600 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2601 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2602 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2603 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2604 | /*depth_multiplier=*/1, |
| 2605 | /*input_channels=*/192, |
| 2606 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2607 | v14, |
| 2608 | w93, |
| 2609 | w94, |
| 2610 | v15, |
| 2611 | /*flags=*/0); |
| 2612 | if (status != xnn_status_success) { |
| 2613 | std::cerr << "failed to create node #14" << std::endl; |
| 2614 | return nullptr; |
| 2615 | } |
| 2616 | |
| 2617 | status = xnn_define_convolution_2d( |
| 2618 | subgraph, |
| 2619 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2620 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2621 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2622 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2623 | /*groups=*/1, |
| 2624 | /*group_input_channels=*/192, |
| 2625 | /*group_output_channels=*/32, |
| 2626 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2627 | v15, |
| 2628 | w95, |
| 2629 | w96, |
| 2630 | v16, |
| 2631 | /*flags=*/0); |
| 2632 | if (status != xnn_status_success) { |
| 2633 | std::cerr << "failed to create node #15" << std::endl; |
| 2634 | return nullptr; |
| 2635 | } |
| 2636 | |
| 2637 | xnn_binary_params v17_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2638 | status = xnn_define_binary( |
| 2639 | subgraph, |
| 2640 | xnn_binary_add, |
| 2641 | &v17_params, |
| 2642 | v16, |
| 2643 | v13, |
| 2644 | v17, |
| 2645 | /*flags=*/0); |
| 2646 | if (status != xnn_status_success) { |
| 2647 | std::cerr << "failed to create node #16" << std::endl; |
| 2648 | return nullptr; |
| 2649 | } |
| 2650 | |
| 2651 | status = xnn_define_convolution_2d( |
| 2652 | subgraph, |
| 2653 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2654 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2655 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2656 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2657 | /*groups=*/1, |
| 2658 | /*group_input_channels=*/32, |
| 2659 | /*group_output_channels=*/192, |
| 2660 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2661 | v17, |
| 2662 | w97, |
| 2663 | w98, |
| 2664 | v18, |
| 2665 | /*flags=*/0); |
| 2666 | if (status != xnn_status_success) { |
| 2667 | std::cerr << "failed to create node #17" << std::endl; |
| 2668 | return nullptr; |
| 2669 | } |
| 2670 | |
| 2671 | status = xnn_define_depthwise_convolution_2d( |
| 2672 | subgraph, |
| 2673 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2674 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2675 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2676 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2677 | /*depth_multiplier=*/1, |
| 2678 | /*input_channels=*/192, |
| 2679 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2680 | v18, |
| 2681 | w99, |
| 2682 | w100, |
| 2683 | v19, |
| 2684 | /*flags=*/0); |
| 2685 | if (status != xnn_status_success) { |
| 2686 | std::cerr << "failed to create node #18" << std::endl; |
| 2687 | return nullptr; |
| 2688 | } |
| 2689 | |
| 2690 | status = xnn_define_convolution_2d( |
| 2691 | subgraph, |
| 2692 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2693 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2694 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2695 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2696 | /*groups=*/1, |
| 2697 | /*group_input_channels=*/192, |
| 2698 | /*group_output_channels=*/32, |
| 2699 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2700 | v19, |
| 2701 | w101, |
| 2702 | w102, |
| 2703 | v20, |
| 2704 | /*flags=*/0); |
| 2705 | if (status != xnn_status_success) { |
| 2706 | std::cerr << "failed to create node #19" << std::endl; |
| 2707 | return nullptr; |
| 2708 | } |
| 2709 | |
| 2710 | xnn_binary_params v21_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2711 | status = xnn_define_binary( |
| 2712 | subgraph, |
| 2713 | xnn_binary_add, |
| 2714 | &v21_params, |
| 2715 | v20, |
| 2716 | v17, |
| 2717 | v21, |
| 2718 | /*flags=*/0); |
| 2719 | if (status != xnn_status_success) { |
| 2720 | std::cerr << "failed to create node #20" << std::endl; |
| 2721 | return nullptr; |
| 2722 | } |
| 2723 | |
| 2724 | status = xnn_define_convolution_2d( |
| 2725 | subgraph, |
| 2726 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2727 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2728 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2729 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2730 | /*groups=*/1, |
| 2731 | /*group_input_channels=*/32, |
| 2732 | /*group_output_channels=*/192, |
| 2733 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2734 | v21, |
| 2735 | w103, |
| 2736 | w104, |
| 2737 | v22, |
| 2738 | /*flags=*/0); |
| 2739 | if (status != xnn_status_success) { |
| 2740 | std::cerr << "failed to create node #21" << std::endl; |
| 2741 | return nullptr; |
| 2742 | } |
| 2743 | |
| 2744 | status = xnn_define_depthwise_convolution_2d( |
| 2745 | subgraph, |
| 2746 | /*padding_top=*/0, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/0, |
| 2747 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2748 | /*subsampling_height=*/2, /*subsampling_width=*/2, |
| 2749 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2750 | /*depth_multiplier=*/1, |
| 2751 | /*input_channels=*/192, |
| 2752 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2753 | v22, |
| 2754 | w105, |
| 2755 | w106, |
| 2756 | v23, |
| 2757 | /*flags=*/0); |
| 2758 | if (status != xnn_status_success) { |
| 2759 | std::cerr << "failed to create node #22" << std::endl; |
| 2760 | return nullptr; |
| 2761 | } |
| 2762 | |
| 2763 | status = xnn_define_convolution_2d( |
| 2764 | subgraph, |
| 2765 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2766 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2767 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2768 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2769 | /*groups=*/1, |
| 2770 | /*group_input_channels=*/192, |
| 2771 | /*group_output_channels=*/64, |
| 2772 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2773 | v23, |
| 2774 | w107, |
| 2775 | w108, |
| 2776 | v24, |
| 2777 | /*flags=*/0); |
| 2778 | if (status != xnn_status_success) { |
| 2779 | std::cerr << "failed to create node #23" << std::endl; |
| 2780 | return nullptr; |
| 2781 | } |
| 2782 | |
| 2783 | status = xnn_define_convolution_2d( |
| 2784 | subgraph, |
| 2785 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2786 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2787 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2788 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2789 | /*groups=*/1, |
| 2790 | /*group_input_channels=*/64, |
| 2791 | /*group_output_channels=*/384, |
| 2792 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2793 | v24, |
| 2794 | w109, |
| 2795 | w110, |
| 2796 | v25, |
| 2797 | /*flags=*/0); |
| 2798 | if (status != xnn_status_success) { |
| 2799 | std::cerr << "failed to create node #24" << std::endl; |
| 2800 | return nullptr; |
| 2801 | } |
| 2802 | |
| 2803 | status = xnn_define_depthwise_convolution_2d( |
| 2804 | subgraph, |
| 2805 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2806 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2807 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2808 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2809 | /*depth_multiplier=*/1, |
| 2810 | /*input_channels=*/384, |
| 2811 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2812 | v25, |
| 2813 | w111, |
| 2814 | w112, |
| 2815 | v26, |
| 2816 | /*flags=*/0); |
| 2817 | if (status != xnn_status_success) { |
| 2818 | std::cerr << "failed to create node #25" << std::endl; |
| 2819 | return nullptr; |
| 2820 | } |
| 2821 | |
| 2822 | status = xnn_define_convolution_2d( |
| 2823 | subgraph, |
| 2824 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2825 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2826 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2827 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2828 | /*groups=*/1, |
| 2829 | /*group_input_channels=*/384, |
| 2830 | /*group_output_channels=*/64, |
| 2831 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2832 | v26, |
| 2833 | w113, |
| 2834 | w114, |
| 2835 | v27, |
| 2836 | /*flags=*/0); |
| 2837 | if (status != xnn_status_success) { |
| 2838 | std::cerr << "failed to create node #26" << std::endl; |
| 2839 | return nullptr; |
| 2840 | } |
| 2841 | |
| 2842 | xnn_binary_params v28_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2843 | status = xnn_define_binary( |
| 2844 | subgraph, |
| 2845 | xnn_binary_add, |
| 2846 | &v28_params, |
| 2847 | v27, |
| 2848 | v24, |
| 2849 | v28, |
| 2850 | /*flags=*/0); |
| 2851 | if (status != xnn_status_success) { |
| 2852 | std::cerr << "failed to create node #27" << std::endl; |
| 2853 | return nullptr; |
| 2854 | } |
| 2855 | |
| 2856 | status = xnn_define_convolution_2d( |
| 2857 | subgraph, |
| 2858 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2859 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2860 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2861 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2862 | /*groups=*/1, |
| 2863 | /*group_input_channels=*/64, |
| 2864 | /*group_output_channels=*/384, |
| 2865 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2866 | v28, |
| 2867 | w115, |
| 2868 | w116, |
| 2869 | v29, |
| 2870 | /*flags=*/0); |
| 2871 | if (status != xnn_status_success) { |
| 2872 | std::cerr << "failed to create node #28" << std::endl; |
| 2873 | return nullptr; |
| 2874 | } |
| 2875 | |
| 2876 | status = xnn_define_depthwise_convolution_2d( |
| 2877 | subgraph, |
| 2878 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2879 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2880 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2881 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2882 | /*depth_multiplier=*/1, |
| 2883 | /*input_channels=*/384, |
| 2884 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2885 | v29, |
| 2886 | w117, |
| 2887 | w118, |
| 2888 | v30, |
| 2889 | /*flags=*/0); |
| 2890 | if (status != xnn_status_success) { |
| 2891 | std::cerr << "failed to create node #29" << std::endl; |
| 2892 | return nullptr; |
| 2893 | } |
| 2894 | |
| 2895 | status = xnn_define_convolution_2d( |
| 2896 | subgraph, |
| 2897 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2898 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2899 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2900 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2901 | /*groups=*/1, |
| 2902 | /*group_input_channels=*/384, |
| 2903 | /*group_output_channels=*/64, |
| 2904 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2905 | v30, |
| 2906 | w119, |
| 2907 | w120, |
| 2908 | v31, |
| 2909 | /*flags=*/0); |
| 2910 | if (status != xnn_status_success) { |
| 2911 | std::cerr << "failed to create node #30" << std::endl; |
| 2912 | return nullptr; |
| 2913 | } |
| 2914 | |
| 2915 | xnn_binary_params v32_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2916 | status = xnn_define_binary( |
| 2917 | subgraph, |
| 2918 | xnn_binary_add, |
| 2919 | &v32_params, |
| 2920 | v31, |
| 2921 | v28, |
| 2922 | v32, |
| 2923 | /*flags=*/0); |
| 2924 | if (status != xnn_status_success) { |
| 2925 | std::cerr << "failed to create node #31" << std::endl; |
| 2926 | return nullptr; |
| 2927 | } |
| 2928 | |
| 2929 | status = xnn_define_convolution_2d( |
| 2930 | subgraph, |
| 2931 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2932 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2933 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2934 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2935 | /*groups=*/1, |
| 2936 | /*group_input_channels=*/64, |
| 2937 | /*group_output_channels=*/384, |
| 2938 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2939 | v32, |
| 2940 | w121, |
| 2941 | w122, |
| 2942 | v33, |
| 2943 | /*flags=*/0); |
| 2944 | if (status != xnn_status_success) { |
| 2945 | std::cerr << "failed to create node #32" << std::endl; |
| 2946 | return nullptr; |
| 2947 | } |
| 2948 | |
| 2949 | status = xnn_define_depthwise_convolution_2d( |
| 2950 | subgraph, |
| 2951 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 2952 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 2953 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2954 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2955 | /*depth_multiplier=*/1, |
| 2956 | /*input_channels=*/384, |
| 2957 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 2958 | v33, |
| 2959 | w123, |
| 2960 | w124, |
| 2961 | v34, |
| 2962 | /*flags=*/0); |
| 2963 | if (status != xnn_status_success) { |
| 2964 | std::cerr << "failed to create node #33" << std::endl; |
| 2965 | return nullptr; |
| 2966 | } |
| 2967 | |
| 2968 | status = xnn_define_convolution_2d( |
| 2969 | subgraph, |
| 2970 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 2971 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 2972 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 2973 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 2974 | /*groups=*/1, |
| 2975 | /*group_input_channels=*/384, |
| 2976 | /*group_output_channels=*/64, |
| 2977 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 2978 | v34, |
| 2979 | w125, |
| 2980 | w126, |
| 2981 | v35, |
| 2982 | /*flags=*/0); |
| 2983 | if (status != xnn_status_success) { |
| 2984 | std::cerr << "failed to create node #34" << std::endl; |
| 2985 | return nullptr; |
| 2986 | } |
| 2987 | |
| 2988 | xnn_binary_params v36_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 2989 | status = xnn_define_binary( |
| 2990 | subgraph, |
| 2991 | xnn_binary_add, |
| 2992 | &v36_params, |
| 2993 | v35, |
| 2994 | v32, |
| 2995 | v36, |
| 2996 | /*flags=*/0); |
| 2997 | if (status != xnn_status_success) { |
| 2998 | std::cerr << "failed to create node #35" << std::endl; |
| 2999 | return nullptr; |
| 3000 | } |
| 3001 | |
| 3002 | status = xnn_define_convolution_2d( |
| 3003 | subgraph, |
| 3004 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3005 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3006 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3007 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3008 | /*groups=*/1, |
| 3009 | /*group_input_channels=*/64, |
| 3010 | /*group_output_channels=*/384, |
| 3011 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3012 | v36, |
| 3013 | w127, |
| 3014 | w128, |
| 3015 | v37, |
| 3016 | /*flags=*/0); |
| 3017 | if (status != xnn_status_success) { |
| 3018 | std::cerr << "failed to create node #36" << std::endl; |
| 3019 | return nullptr; |
| 3020 | } |
| 3021 | |
| 3022 | status = xnn_define_depthwise_convolution_2d( |
| 3023 | subgraph, |
| 3024 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3025 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3026 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3027 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3028 | /*depth_multiplier=*/1, |
| 3029 | /*input_channels=*/384, |
| 3030 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3031 | v37, |
| 3032 | w129, |
| 3033 | w130, |
| 3034 | v38, |
| 3035 | /*flags=*/0); |
| 3036 | if (status != xnn_status_success) { |
| 3037 | std::cerr << "failed to create node #37" << std::endl; |
| 3038 | return nullptr; |
| 3039 | } |
| 3040 | |
| 3041 | status = xnn_define_convolution_2d( |
| 3042 | subgraph, |
| 3043 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3044 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3045 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3046 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3047 | /*groups=*/1, |
| 3048 | /*group_input_channels=*/384, |
| 3049 | /*group_output_channels=*/96, |
| 3050 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3051 | v38, |
| 3052 | w131, |
| 3053 | w132, |
| 3054 | v39, |
| 3055 | /*flags=*/0); |
| 3056 | if (status != xnn_status_success) { |
| 3057 | std::cerr << "failed to create node #38" << std::endl; |
| 3058 | return nullptr; |
| 3059 | } |
| 3060 | |
| 3061 | status = xnn_define_convolution_2d( |
| 3062 | subgraph, |
| 3063 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3064 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3065 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3066 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3067 | /*groups=*/1, |
| 3068 | /*group_input_channels=*/96, |
| 3069 | /*group_output_channels=*/576, |
| 3070 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3071 | v39, |
| 3072 | w133, |
| 3073 | w134, |
| 3074 | v40, |
| 3075 | /*flags=*/0); |
| 3076 | if (status != xnn_status_success) { |
| 3077 | std::cerr << "failed to create node #39" << std::endl; |
| 3078 | return nullptr; |
| 3079 | } |
| 3080 | |
| 3081 | status = xnn_define_depthwise_convolution_2d( |
| 3082 | subgraph, |
| 3083 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3084 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3085 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3086 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3087 | /*depth_multiplier=*/1, |
| 3088 | /*input_channels=*/576, |
| 3089 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3090 | v40, |
| 3091 | w135, |
| 3092 | w136, |
| 3093 | v41, |
| 3094 | /*flags=*/0); |
| 3095 | if (status != xnn_status_success) { |
| 3096 | std::cerr << "failed to create node #40" << std::endl; |
| 3097 | return nullptr; |
| 3098 | } |
| 3099 | |
| 3100 | status = xnn_define_convolution_2d( |
| 3101 | subgraph, |
| 3102 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3103 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3104 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3105 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3106 | /*groups=*/1, |
| 3107 | /*group_input_channels=*/576, |
| 3108 | /*group_output_channels=*/96, |
| 3109 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3110 | v41, |
| 3111 | w137, |
| 3112 | w138, |
| 3113 | v42, |
| 3114 | /*flags=*/0); |
| 3115 | if (status != xnn_status_success) { |
| 3116 | std::cerr << "failed to create node #41" << std::endl; |
| 3117 | return nullptr; |
| 3118 | } |
| 3119 | |
| 3120 | xnn_binary_params v43_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 3121 | status = xnn_define_binary( |
| 3122 | subgraph, |
| 3123 | xnn_binary_add, |
| 3124 | &v43_params, |
| 3125 | v42, |
| 3126 | v39, |
| 3127 | v43, |
| 3128 | /*flags=*/0); |
| 3129 | if (status != xnn_status_success) { |
| 3130 | std::cerr << "failed to create node #42" << std::endl; |
| 3131 | return nullptr; |
| 3132 | } |
| 3133 | |
| 3134 | status = xnn_define_convolution_2d( |
| 3135 | subgraph, |
| 3136 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3137 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3138 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3139 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3140 | /*groups=*/1, |
| 3141 | /*group_input_channels=*/96, |
| 3142 | /*group_output_channels=*/576, |
| 3143 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3144 | v43, |
| 3145 | w139, |
| 3146 | w140, |
| 3147 | v44, |
| 3148 | /*flags=*/0); |
| 3149 | if (status != xnn_status_success) { |
| 3150 | std::cerr << "failed to create node #43" << std::endl; |
| 3151 | return nullptr; |
| 3152 | } |
| 3153 | |
| 3154 | status = xnn_define_depthwise_convolution_2d( |
| 3155 | subgraph, |
| 3156 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3157 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3158 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3159 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3160 | /*depth_multiplier=*/1, |
| 3161 | /*input_channels=*/576, |
| 3162 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3163 | v44, |
| 3164 | w141, |
| 3165 | w142, |
| 3166 | v45, |
| 3167 | /*flags=*/0); |
| 3168 | if (status != xnn_status_success) { |
| 3169 | std::cerr << "failed to create node #44" << std::endl; |
| 3170 | return nullptr; |
| 3171 | } |
| 3172 | |
| 3173 | status = xnn_define_convolution_2d( |
| 3174 | subgraph, |
| 3175 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3176 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3177 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3178 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3179 | /*groups=*/1, |
| 3180 | /*group_input_channels=*/576, |
| 3181 | /*group_output_channels=*/96, |
| 3182 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3183 | v45, |
| 3184 | w143, |
| 3185 | w144, |
| 3186 | v46, |
| 3187 | /*flags=*/0); |
| 3188 | if (status != xnn_status_success) { |
| 3189 | std::cerr << "failed to create node #45" << std::endl; |
| 3190 | return nullptr; |
| 3191 | } |
| 3192 | |
| 3193 | xnn_binary_params v47_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 3194 | status = xnn_define_binary( |
| 3195 | subgraph, |
| 3196 | xnn_binary_add, |
| 3197 | &v47_params, |
| 3198 | v46, |
| 3199 | v43, |
| 3200 | v47, |
| 3201 | /*flags=*/0); |
| 3202 | if (status != xnn_status_success) { |
| 3203 | std::cerr << "failed to create node #46" << std::endl; |
| 3204 | return nullptr; |
| 3205 | } |
| 3206 | |
| 3207 | status = xnn_define_convolution_2d( |
| 3208 | subgraph, |
| 3209 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3210 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3211 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3212 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3213 | /*groups=*/1, |
| 3214 | /*group_input_channels=*/96, |
| 3215 | /*group_output_channels=*/576, |
| 3216 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3217 | v47, |
| 3218 | w145, |
| 3219 | w146, |
| 3220 | v48, |
| 3221 | /*flags=*/0); |
| 3222 | if (status != xnn_status_success) { |
| 3223 | std::cerr << "failed to create node #47" << std::endl; |
| 3224 | return nullptr; |
| 3225 | } |
| 3226 | |
| 3227 | status = xnn_define_depthwise_convolution_2d( |
| 3228 | subgraph, |
| 3229 | /*padding_top=*/0, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/0, |
| 3230 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3231 | /*subsampling_height=*/2, /*subsampling_width=*/2, |
| 3232 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3233 | /*depth_multiplier=*/1, |
| 3234 | /*input_channels=*/576, |
| 3235 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3236 | v48, |
| 3237 | w147, |
| 3238 | w148, |
| 3239 | v49, |
| 3240 | /*flags=*/0); |
| 3241 | if (status != xnn_status_success) { |
| 3242 | std::cerr << "failed to create node #48" << std::endl; |
| 3243 | return nullptr; |
| 3244 | } |
| 3245 | |
| 3246 | status = xnn_define_convolution_2d( |
| 3247 | subgraph, |
| 3248 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3249 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3250 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3251 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3252 | /*groups=*/1, |
| 3253 | /*group_input_channels=*/576, |
| 3254 | /*group_output_channels=*/160, |
| 3255 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3256 | v49, |
| 3257 | w149, |
| 3258 | w150, |
| 3259 | v50, |
| 3260 | /*flags=*/0); |
| 3261 | if (status != xnn_status_success) { |
| 3262 | std::cerr << "failed to create node #49" << std::endl; |
| 3263 | return nullptr; |
| 3264 | } |
| 3265 | |
| 3266 | status = xnn_define_convolution_2d( |
| 3267 | subgraph, |
| 3268 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3269 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3270 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3271 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3272 | /*groups=*/1, |
| 3273 | /*group_input_channels=*/160, |
| 3274 | /*group_output_channels=*/960, |
| 3275 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3276 | v50, |
| 3277 | w151, |
| 3278 | w152, |
| 3279 | v51, |
| 3280 | /*flags=*/0); |
| 3281 | if (status != xnn_status_success) { |
| 3282 | std::cerr << "failed to create node #50" << std::endl; |
| 3283 | return nullptr; |
| 3284 | } |
| 3285 | |
| 3286 | status = xnn_define_depthwise_convolution_2d( |
| 3287 | subgraph, |
| 3288 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3289 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3290 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3291 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3292 | /*depth_multiplier=*/1, |
| 3293 | /*input_channels=*/960, |
| 3294 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3295 | v51, |
| 3296 | w153, |
| 3297 | w154, |
| 3298 | v52, |
| 3299 | /*flags=*/0); |
| 3300 | if (status != xnn_status_success) { |
| 3301 | std::cerr << "failed to create node #51" << std::endl; |
| 3302 | return nullptr; |
| 3303 | } |
| 3304 | |
| 3305 | status = xnn_define_convolution_2d( |
| 3306 | subgraph, |
| 3307 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3308 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3309 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3310 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3311 | /*groups=*/1, |
| 3312 | /*group_input_channels=*/960, |
| 3313 | /*group_output_channels=*/160, |
| 3314 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3315 | v52, |
| 3316 | w155, |
| 3317 | w156, |
| 3318 | v53, |
| 3319 | /*flags=*/0); |
| 3320 | if (status != xnn_status_success) { |
| 3321 | std::cerr << "failed to create node #52" << std::endl; |
| 3322 | return nullptr; |
| 3323 | } |
| 3324 | |
| 3325 | xnn_binary_params v54_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 3326 | status = xnn_define_binary( |
| 3327 | subgraph, |
| 3328 | xnn_binary_add, |
| 3329 | &v54_params, |
| 3330 | v53, |
| 3331 | v50, |
| 3332 | v54, |
| 3333 | /*flags=*/0); |
| 3334 | if (status != xnn_status_success) { |
| 3335 | std::cerr << "failed to create node #53" << std::endl; |
| 3336 | return nullptr; |
| 3337 | } |
| 3338 | |
| 3339 | status = xnn_define_convolution_2d( |
| 3340 | subgraph, |
| 3341 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3342 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3343 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3344 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3345 | /*groups=*/1, |
| 3346 | /*group_input_channels=*/160, |
| 3347 | /*group_output_channels=*/960, |
| 3348 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3349 | v54, |
| 3350 | w157, |
| 3351 | w158, |
| 3352 | v55, |
| 3353 | /*flags=*/0); |
| 3354 | if (status != xnn_status_success) { |
| 3355 | std::cerr << "failed to create node #54" << std::endl; |
| 3356 | return nullptr; |
| 3357 | } |
| 3358 | |
| 3359 | status = xnn_define_depthwise_convolution_2d( |
| 3360 | subgraph, |
| 3361 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3362 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3363 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3364 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3365 | /*depth_multiplier=*/1, |
| 3366 | /*input_channels=*/960, |
| 3367 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3368 | v55, |
| 3369 | w159, |
| 3370 | w160, |
| 3371 | v56, |
| 3372 | /*flags=*/0); |
| 3373 | if (status != xnn_status_success) { |
| 3374 | std::cerr << "failed to create node #55" << std::endl; |
| 3375 | return nullptr; |
| 3376 | } |
| 3377 | |
| 3378 | status = xnn_define_convolution_2d( |
| 3379 | subgraph, |
| 3380 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3381 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3382 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3383 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3384 | /*groups=*/1, |
| 3385 | /*group_input_channels=*/960, |
| 3386 | /*group_output_channels=*/160, |
| 3387 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3388 | v56, |
| 3389 | w161, |
| 3390 | w162, |
| 3391 | v57, |
| 3392 | /*flags=*/0); |
| 3393 | if (status != xnn_status_success) { |
| 3394 | std::cerr << "failed to create node #56" << std::endl; |
| 3395 | return nullptr; |
| 3396 | } |
| 3397 | |
| 3398 | xnn_binary_params v58_params = { -std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() }; |
| 3399 | status = xnn_define_binary( |
| 3400 | subgraph, |
| 3401 | xnn_binary_add, |
| 3402 | &v58_params, |
| 3403 | v57, |
| 3404 | v54, |
| 3405 | v58, |
| 3406 | /*flags=*/0); |
| 3407 | if (status != xnn_status_success) { |
| 3408 | std::cerr << "failed to create node #57" << std::endl; |
| 3409 | return nullptr; |
| 3410 | } |
| 3411 | |
| 3412 | status = xnn_define_convolution_2d( |
| 3413 | subgraph, |
| 3414 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3415 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3416 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3417 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3418 | /*groups=*/1, |
| 3419 | /*group_input_channels=*/160, |
| 3420 | /*group_output_channels=*/960, |
| 3421 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3422 | v58, |
| 3423 | w163, |
| 3424 | w164, |
| 3425 | v59, |
| 3426 | /*flags=*/0); |
| 3427 | if (status != xnn_status_success) { |
| 3428 | std::cerr << "failed to create node #58" << std::endl; |
| 3429 | return nullptr; |
| 3430 | } |
| 3431 | |
| 3432 | status = xnn_define_depthwise_convolution_2d( |
| 3433 | subgraph, |
| 3434 | /*padding_top=*/1, /*padding_right=*/1, /*padding_bottom=*/1, /*padding_left=*/1, |
| 3435 | /*kernel_height=*/3, /*kernel_width=*/3, |
| 3436 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3437 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3438 | /*depth_multiplier=*/1, |
| 3439 | /*input_channels=*/960, |
| 3440 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3441 | v59, |
| 3442 | w165, |
| 3443 | w166, |
| 3444 | v60, |
| 3445 | /*flags=*/0); |
| 3446 | if (status != xnn_status_success) { |
| 3447 | std::cerr << "failed to create node #59" << std::endl; |
| 3448 | return nullptr; |
| 3449 | } |
| 3450 | |
| 3451 | status = xnn_define_convolution_2d( |
| 3452 | subgraph, |
| 3453 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3454 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3455 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3456 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3457 | /*groups=*/1, |
| 3458 | /*group_input_channels=*/960, |
| 3459 | /*group_output_channels=*/320, |
| 3460 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3461 | v60, |
| 3462 | w167, |
| 3463 | w168, |
| 3464 | v61, |
| 3465 | /*flags=*/0); |
| 3466 | if (status != xnn_status_success) { |
| 3467 | std::cerr << "failed to create node #60" << std::endl; |
| 3468 | return nullptr; |
| 3469 | } |
| 3470 | |
| 3471 | status = xnn_define_convolution_2d( |
| 3472 | subgraph, |
| 3473 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3474 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3475 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3476 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3477 | /*groups=*/1, |
| 3478 | /*group_input_channels=*/320, |
| 3479 | /*group_output_channels=*/1280, |
| 3480 | /*output_min=*/0.0f, /*output_max=*/6.0f, |
| 3481 | v61, |
| 3482 | w169, |
| 3483 | w170, |
| 3484 | v62, |
| 3485 | /*flags=*/0); |
| 3486 | if (status != xnn_status_success) { |
| 3487 | std::cerr << "failed to create node #61" << std::endl; |
| 3488 | return nullptr; |
| 3489 | } |
| 3490 | |
| 3491 | status = xnn_define_average_pooling_2d( |
| 3492 | subgraph, |
| 3493 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3494 | /*pooling_height=*/7, /*pooling_width=*/7, |
| 3495 | /*stride_height=*/1, /*stride_width=*/1, |
| 3496 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3497 | v62, |
| 3498 | v63, |
| 3499 | /*flags=*/0); |
| 3500 | if (status != xnn_status_success) { |
| 3501 | std::cerr << "failed to create node #62" << std::endl; |
| 3502 | return nullptr; |
| 3503 | } |
| 3504 | |
| 3505 | status = xnn_define_convolution_2d( |
| 3506 | subgraph, |
| 3507 | /*padding_top=*/0, /*padding_right=*/0, /*padding_bottom=*/0, /*padding_left=*/0, |
| 3508 | /*kernel_height=*/1, /*kernel_width=*/1, |
| 3509 | /*subsampling_height=*/1, /*subsampling_width=*/1, |
| 3510 | /*dilation_height=*/1, /*dilation_width=*/1, |
| 3511 | /*groups=*/1, |
| 3512 | /*group_input_channels=*/1280, |
| 3513 | /*group_output_channels=*/1001, |
| 3514 | /*output_min=*/-std::numeric_limits<float>::infinity(), /*output_max=*/std::numeric_limits<float>::infinity(), |
| 3515 | v63, |
| 3516 | w171, |
| 3517 | w172, |
| 3518 | v64, |
| 3519 | /*flags=*/0); |
| 3520 | if (status != xnn_status_success) { |
| 3521 | std::cerr << "failed to create node #63" << std::endl; |
| 3522 | return nullptr; |
| 3523 | } |
| 3524 | |
| 3525 | status = xnn_define_copy( |
| 3526 | subgraph, |
| 3527 | v64, |
| 3528 | v65, |
| 3529 | 0); |
| 3530 | if (status != xnn_status_success) { |
| 3531 | std::cerr << "failed to create node #64" << std::endl; |
| 3532 | return nullptr; |
| 3533 | } |
| 3534 | |
| 3535 | status = xnn_define_softmax( |
| 3536 | subgraph, |
| 3537 | v65, |
| 3538 | v66, |
| 3539 | /*flags=*/0); |
| 3540 | if (status != xnn_status_success) { |
| 3541 | std::cerr << "failed to create node #65" << std::endl; |
| 3542 | return nullptr; |
| 3543 | } |
| 3544 | |
| 3545 | return subgraph; |
| 3546 | } |
| 3547 | |
| 3548 | } // namespace models |