Compute Library
 22.05
GenerateProposalsLayer.cpp File Reference

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2022 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::validation
 

Typedefs

template<typename T >
using CLComputeAllAnchorsFixture = ComputeAllAnchorsFixture< CLTensor, CLAccessor, CLComputeAllAnchors, T >
 

Functions

 DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(zip(zip(zip(zip(zip(zip(framework::dataset::make("scores", { TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F16), TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F16), TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F16), TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F16), TensorInfo(TensorShape(100U, 100U, 9U), 1, DataType::F16)}), framework::dataset::make("deltas",{ TensorInfo(TensorShape(100U, 100U, 36U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 36U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 38U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 38U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 38U), 1, DataType::F32), TensorInfo(TensorShape(100U, 100U, 38U), 1, DataType::F32)})), framework::dataset::make("anchors", { TensorInfo(TensorShape(4U, 9U), 1, DataType::F32), TensorInfo(TensorShape(4U, 9U), 1, DataType::F32), TensorInfo(TensorShape(4U, 9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 9U), 1, DataType::F32), TensorInfo(TensorShape(4U, 9U), 1, DataType::F32), TensorInfo(TensorShape(4U, 9U), 1, DataType::F32)})), framework::dataset::make("proposals", { TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(5U, 100U *100U *9U), 1, DataType::F32)})), framework::dataset::make("scores_out", { TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32), TensorInfo(TensorShape(100U *100U *9U), 1, DataType::F32)})), framework::dataset::make("num_valid_proposals", { TensorInfo(TensorShape(1U, 1U), 1, DataType::U32), TensorInfo(TensorShape(1U, 1U), 1, DataType::U32), TensorInfo(TensorShape(1U, 1U), 1, DataType::U32), TensorInfo(TensorShape(1U, 1U), 1, DataType::U32), TensorInfo(TensorShape(1U, 10U), 1, DataType::U32), TensorInfo(TensorShape(1U, 1U), 1, DataType::F16)})), framework::dataset::make("generate_proposals_info", { GenerateProposalsInfo(10.f, 10.f, 1.f), GenerateProposalsInfo(10.f, 10.f, 1.f), GenerateProposalsInfo(10.f, 10.f, 1.f), GenerateProposalsInfo(10.f, 10.f, 1.f), GenerateProposalsInfo(10.f, 10.f, 1.f), GenerateProposalsInfo(10.f, 10.f, 1.f)})), framework::dataset::make("Expected", { true, false, false, false, false, false })), scores, deltas, anchors, proposals, scores_out, num_valid_proposals, generate_proposals_info, expected)
 
 DATA_TEST_CASE (IntegrationTestCaseAllAnchors, framework::DatasetMode::ALL, framework::dataset::make("DataType", { DataType::F32 }), data_type)
 
 DATA_TEST_CASE (IntegrationTestCaseGenerateProposals, framework::DatasetMode::ALL, combine(framework::dataset::make("DataType", { DataType::F32 }), framework::dataset::make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), data_type, data_layout)
 
 FIXTURE_DATA_TEST_CASE (ComputeAllAnchors, CLComputeAllAnchorsFixture< float >, framework::DatasetMode::ALL, combine(combine(framework::dataset::make("NumAnchors", { 2, 4, 8 }), ComputeAllInfoDataset), framework::dataset::make("DataType", { DataType::F32 })))
 
 TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T>
 [CLActivationLayer Test snippet] More...
 
 combine (combine(framework::dataset::make("NumAnchors", { 2, 4, 8 }), ComputeAllInfoDataset), framework::dataset::make("DataType", { DataType::F16 })))
 
 FIXTURE_DATA_TEST_CASE (ComputeAllAnchors, CLComputeAllAnchorsQuantizedFixture< int16_t >, framework::DatasetMode::ALL, combine(combine(combine(framework::dataset::make("NumAnchors", { 2, 4, 8 }), ComputeAllInfoDataset), framework::dataset::make("DataType", { DataType::QSYMM16 })), framework::dataset::make("QuantInfo", { QuantizationInfo(0.125f, 0) })))
 

Variables

 CLComputeAllAnchorsFixture< half >