|
| DATA_TEST_CASE (ValidateConvolutionMethod, framework::DatasetMode::ALL, zip(zip(zip(zip(zip(zip(zip(make("InputInfo", { TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::F32), TensorInfo(TensorShape(23U, 27U, 5U, 4U), 1, DataType::F32), TensorInfo(TensorShape(23U, 27U, 31U, 4U), 1, DataType::F32), TensorInfo(TensorShape(3U, 3U, 2U, 1U), 1, DataType::F32), TensorInfo(TensorShape(33U, 27U, 7U, 4U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 32U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::QASYMM8_SIGNED), }), make("WeightsInfo", { TensorInfo(TensorShape(5U, 5U, 2U, 19U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 2U, 19U), 1, DataType::F32), TensorInfo(TensorShape(3U, 3U, 5U, 21U), 1, DataType::F32), TensorInfo(TensorShape(3U, 3U, 31U, 21U), 1, DataType::F32), TensorInfo(TensorShape(3U, 3U, 5U, 21U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 7U, 16U), 1, DataType::F16), TensorInfo(TensorShape(5U, 5U, 32U, 19U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 2U, 19U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 2U, 19U), 1, DataType::QASYMM8_SIGNED), })), make("OutputInfo", { TensorInfo(TensorShape(15U, 15U, 19U), 1, DataType::F32), TensorInfo(TensorShape(15U, 15U, 19U), 1, DataType::F32), TensorInfo(TensorShape(21U, 25U, 21U, 4U), 1, DataType::F32), TensorInfo(TensorShape(21U, 25U, 21U, 4U), 1, DataType::F32), TensorInfo(TensorShape(11U, 25U, 21U), 1, DataType::F32), TensorInfo(TensorShape(11U, 12U, 16U, 4U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 19U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 19U), 1, DataType::F32), TensorInfo(TensorShape(17U, 31U, 19U), 1, DataType::QASYMM8_SIGNED), })), make("ConvInfo", { PadStrideInfo(1, 2, 1, 1), PadStrideInfo(1, 2, 1, 1), PadStrideInfo(1, 1, 0, 0), PadStrideInfo(1, 1, 0, 0), PadStrideInfo(2, 1, 0, 0), PadStrideInfo(3, 2, 1, 0), PadStrideInfo(1, 1, 2, 2), PadStrideInfo(1, 1, 2, 2), PadStrideInfo(1, 1, 2, 2), })), make("GpuTarget", { GPUTarget::BIFROST, GPUTarget::MIDGARD, GPUTarget::G71, GPUTarget::G71, GPUTarget::MIDGARD, GPUTarget::BIFROST, GPUTarget::BIFROST, GPUTarget::BIFROST, GPUTarget::BIFROST, })), make("Dilation", { Size2D(1U, 1U), Size2D(1U, 1U), Size2D(1U, 1U), Size2D(1U, 1U), Size2D(1U, 1U), Size2D(1U, 1U), Size2D(1U, 1U), Size2D(2U, 1U), Size2D(2U, 1U), })), make("EnableFastMath", { false, false, false, false, false, false, true, true, true })), make("Expected",{ ConvolutionMethod::GEMM, ConvolutionMethod::GEMM, ConvolutionMethod::GEMM, ConvolutionMethod::WINOGRAD, ConvolutionMethod::GEMM, ConvolutionMethod::GEMM, ConvolutionMethod::WINOGRAD, ConvolutionMethod::GEMM, ConvolutionMethod::GEMM, })), input_info, weights_info, output_info, conv_info, gpu_target, dilation, enable_fast_math, expected) |
|
| TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T> |
| [CLActivationLayer Test snippet] More...
|
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMConvolutionLayerFixture< half >, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F16)), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset)) |
|
| combine (combine(combine(combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F32)), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayout, CLGEMMConvolutionLayerMixedDataLayoutFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(combine(combine(combine(make("Input", TensorShape(23U, 27U, 5U)), make("Weights", TensorShape(3U, 3U, 5U, 2U))), make("Bias", TensorShape(2U))), make("Output", TensorShape(11U, 25U, 2U))), make("PadStrideInfo", PadStrideInfo(2, 1, 0, 0))), make("Dilation", Size2D(1, 1))), make("ReshapeWeights", { true })), make("DataType", DataType::F32)), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), ActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallWithPadding, CLConvolutionValidationWithPaddingFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(datasets::SmallConvolutionLayerPrePaddingDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F32)), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), make("ActivationInfo", { ActivationLayerInfo() })), make("PrePadLayer", { PaddingList({ { 1, 1 }, { 1, 1 } }) }))) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallCases, CLGEMMConvolutionLayerQuantizedFixture< uint8_t >, framework::DatasetMode::ALL, combine(SmallConvolutionLayerDatasetCases(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), IgnoredQuantizationInfo, NoActivation)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallCasesWithActivation, CLGEMMConvolutionLayerQuantizedFixture< uint8_t >, framework::DatasetMode::ALL, combine(SmallConvolutionLayerDatasetCases(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), QuantizationData, QuantizedActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMConvolutionLayerQuantizedFixture< uint8_t >, framework::DatasetMode::ALL, combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), IgnoredQuantizationInfo, NoActivation)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallWithActivation, CLGEMMConvolutionLayerQuantizedFixture< uint8_t >, framework::DatasetMode::ALL, combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), QuantizationData, QuantizedActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayout, CLGEMMConvolutionLayerQuantizedMixedDataLayoutFixture< uint8_t >, framework::DatasetMode::ALL, combine(make("Input", TensorShape(23U, 27U, 5U)), make("Weights", TensorShape(3U, 3U, 5U, 2U)), make("Bias", TensorShape(2U)), make("Output", TensorShape(11U, 25U, 2U)), make("PadStrideInfo", PadStrideInfo(2, 1, 0, 0)), make("Dilation", Size2D(1, 1)), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), IgnoredQuantizationInfo, NoActivation)) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayoutWithActivation, CLGEMMConvolutionLayerQuantizedMixedDataLayoutFixture< uint8_t >, framework::DatasetMode::ALL, combine(make("Input", TensorShape(23U, 27U, 5U)), make("Weights", TensorShape(3U, 3U, 5U, 2U)), make("Bias", TensorShape(2U)), make("Output", TensorShape(11U, 25U, 2U)), make("PadStrideInfo", PadStrideInfo(2, 1, 0, 0)), make("Dilation", Size2D(1, 1)), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), QuantizationData, QuantizedActivationFunctionsSmallDataset)) |
|
| combine (datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8_SIGNED), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), IgnoredQuantizationInfo, NoActivation)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallWithActivation, CLGEMMConvolutionLayerQuantizedFixture< int8_t >, framework::DatasetMode::ALL, combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8_SIGNED), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), QuantizationData, QuantizedActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayout, CLGEMMConvolutionLayerQuantizedMixedDataLayoutFixture< int8_t >, framework::DatasetMode::ALL, combine(make("Input", TensorShape(23U, 27U, 5U)), make("Weights", TensorShape(3U, 3U, 5U, 2U)), make("Bias", TensorShape(2U)), make("Output", TensorShape(11U, 25U, 2U)), make("PadStrideInfo", PadStrideInfo(2, 1, 0, 0)), make("Dilation", Size2D(1, 1)), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8_SIGNED), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), IgnoredQuantizationInfo, NoActivation)) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayoutWithActivation, CLGEMMConvolutionLayerQuantizedMixedDataLayoutFixture< int8_t >, framework::DatasetMode::ALL, combine(make("Input", TensorShape(23U, 27U, 5U)), make("Weights", TensorShape(3U, 3U, 5U, 2U)), make("Bias", TensorShape(2U)), make("Output", TensorShape(11U, 25U, 2U)), make("PadStrideInfo", PadStrideInfo(2, 1, 0, 0)), make("Dilation", Size2D(1, 1)), make("ReshapeWeights", { true }), make("DataType", DataType::QASYMM8_SIGNED), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }), QuantizationData, QuantizedActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunSmallSigned, CLGEMMConvolutionLayerQuantizedPerChannelFixture< int8_t >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", { DataType::QASYMM8_SIGNED })), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), QuantizationData), QuantizedActivationFunctionsSmallPerChannelDataset), make("WeightsDataType", { DataType::QSYMM8_PER_CHANNEL }))) |
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMConvolutionLayerQuantizedPerChannelFixture< uint8_t >, framework::DatasetMode::ALL, combine(combine(combine(combine(combine(combine(datasets::SmallConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", { DataType::QASYMM8 })), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC })), QuantizationData), QuantizedActivationFunctionsSmallPerChannelDataset), make("WeightsDataType", { DataType::QSYMM8_PER_CHANNEL }))) |
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLGEMMGroupedConvolutionLayerFixture< float >, framework::DatasetMode::ALL, combine(combine(combine(combine(datasets::SmallGroupedConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F32)), make("DataLayout", { DataLayout::NCHW })), ActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMGroupedConvolutionLayerFixture< float >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(datasets::LargeGroupedConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F32)), make("DataLayout", { DataLayout::NCHW })), ActivationFunctionsDataset)) |
|
| combine (combine(combine(combine(datasets::SmallGroupedConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F16)), make("DataLayout", { DataLayout::NCHW })), ActivationFunctionsSmallDataset)) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLGEMMGroupedConvolutionLayerFixture< half >, framework::DatasetMode::NIGHTLY, combine(combine(combine(combine(datasets::LargeGroupedConvolutionLayerDataset(), make("ReshapeWeights", { true })), make("DataType", DataType::F16)), make("DataLayout", { DataLayout::NCHW })), ActivationFunctionsDataset)) |
|