| 405 | } |
| 406 | |
| 407 | void CLGenerateProposalsLayer::run() |
| 408 | { |
| 409 | // Acquire all the temporaries |
| 410 | MemoryGroupResourceScope scope_mg(_memory_group); |
| 411 | |
| 412 | // Compute all the anchors |
| 413 | CLScheduler::get().enqueue(*_compute_anchors_kernel, false); |
| 414 | |
| 415 | // Transpose and reshape the inputs |
| 416 | if (!_is_nhwc) |
| 417 | { |
| 418 | _permute_deltas.run(); |
| 419 | _permute_scores.run(); |
| 420 | } |
| 421 | _flatten_deltas.run(); |
| 422 | _flatten_scores.run(); |
| 423 | |
| 424 | if (_is_qasymm8) |
| 425 | { |
| 426 | _dequantize_anchors->run(); |
| 427 | _dequantize_deltas->run(); |
| 428 | } |
| 429 | |
| 430 | // Build the boxes |
| 431 | CLScheduler::get().enqueue(*_bounding_box_kernel, false); |
| 432 | |
| 433 | if (_is_qasymm8) |
| 434 | { |
| 435 | _quantize_all_proposals->run(); |
| 436 | } |
| 437 | |
| 438 | // Non maxima suppression |
| 439 | run_cpp_nms_kernel(); |
| 440 | // Add dummy batch indexes |
| 441 | CLScheduler::get().enqueue(*_pad_kernel, true); |
| 442 | } |
| 443 | } // namespace arm_compute |
no test coverage detected