|
| DATA_TEST_CASE (Validate, framework::DatasetMode::ALL, zip(make("InputInfo", { TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::F16), TensorInfo(TensorShape(17U, 31U, 2U), 1, DataType::F32), TensorInfo(TensorShape(23U, 27U, 5U, 4U), 1, DataType::F32), TensorInfo(TensorShape(16U, 16U, 8U), 1, DataType::F32), TensorInfo(TensorShape(33U, 27U, 7U, 4U), 1, DataType::F32) }), make("WeightsInfo", { TensorInfo(TensorShape(3U, 3U, 2U, 19U), 1, DataType::F16), TensorInfo(TensorShape(3U, 3U, 2U, 19U), 1, DataType::QASYMM8), TensorInfo(TensorShape(3U, 3U, 5U, 21U), 1, DataType::F32), TensorInfo(TensorShape(3U, 3U, 8U, 16U), 1, DataType::F32), TensorInfo(TensorShape(5U, 5U, 7U, 16U), 1, DataType::F16) }), make("BiasesInfo", { TensorInfo(TensorShape(19U), 1, DataType::F16), TensorInfo(TensorShape(19U), 1, DataType::F32), TensorInfo(TensorShape(21U), 1, DataType::F32), TensorInfo(TensorShape(16U), 1, DataType::F32), TensorInfo(TensorShape(16U), 1, DataType::F32) }), make("OutputInfo", { TensorInfo(TensorShape(17U, 31U, 19U), 1, DataType::F16), TensorInfo(TensorShape(15U, 15U, 19U), 1, DataType::F32), TensorInfo(TensorShape(21U, 25U, 21U, 4U), 1, DataType::F32), TensorInfo(TensorShape(16U, 16U, 16U), 1, DataType::F32), TensorInfo(TensorShape(11U, 12U, 16U, 4U), 1, DataType::F32) }), make("ConvInfo", { PadStrideInfo(1, 1, 1, 1), PadStrideInfo(1, 1, 1, 1), PadStrideInfo(1, 2, 0, 0), PadStrideInfo(1, 1, 1, 1), PadStrideInfo(1, 1, 1, 0) }), make("Expected", { false, false, false, false, false })), input_info, weights_info, bias_info, output_info, conv_info, expected) |
|
| DATA_TEST_CASE (SupportedKernels, framework::DatasetMode::ALL, zip(make("WeightsInfo", { TensorInfo(TensorShape(3U, 3U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(1U, 3U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(3U, 1U, 2U, 8U), 1, DataType::F16, DataLayout::NCHW), TensorInfo(TensorShape(5U, 5U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(1U, 5U, 2U, 8U), 1, DataType::F16, DataLayout::NCHW), TensorInfo(TensorShape(5U, 1U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(7U, 7U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(1U, 7U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(7U, 1U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(2U, 2U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(5U, 2U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(3U, 6U, 2U, 8U), 1, DataType::F32, DataLayout::NCHW), TensorInfo(TensorShape(7U, 7U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(1U, 7U, 2U, 8U), 1, DataType::F16, DataLayout::NHWC), TensorInfo(TensorShape(7U, 1U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(3U, 3U, 2U, 8U), 1, DataType::F16, DataLayout::NHWC), TensorInfo(TensorShape(1U, 3U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(3U, 1U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(5U, 5U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(1U, 5U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(5U, 1U, 2U, 8U), 1, DataType::F16, DataLayout::NHWC), TensorInfo(TensorShape(2U, 2U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(5U, 2U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), TensorInfo(TensorShape(3U, 6U, 2U, 8U), 1, DataType::F32, DataLayout::NHWC), }), make("Expected", { true, true, true, true, true, true, false, false, false, false, false, false, true, true, true, true, true, true, true, true, true, false, false, false, })), weights_info_const, expected) |
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallWinogradConvolutionLayer3x3Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer3x3Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(8U, 8U, 32U)), make("Weight", TensorShape(3U, 3U, 32U, 4U)), make("Bias", TensorShape(4U)), make("Output", TensorShape(6U, 6U, 4U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F32 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| TEST_SUITE_END () FIXTURE_DATA_TEST_CASE(RunSmall = ActivationValidationQuantizedFixture<CLTensor, CLAccessor, CLActivationLayer, T> |
| [CLActivationLayer Test snippet] More...
|
|
| combine (datasets::SmallWinogradConvolutionLayer3x1Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer3x1Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x3Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunMixedDataLayout, CLWinogradConvolutionLayerFastMathMixedDataLayoutFixture, framework::DatasetMode::PRECOMMIT, combine(make("Input", TensorShape(8U, 8U, 32U)), make("Weight", TensorShape(1U, 3U, 32U, 1U)), make("Bias", TensorShape(1U)), make("Output", TensorShape(8U, 6U, 1U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer1x3Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer5x5Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer5x5Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(13U, 13U, 32U)), make("Weight", TensorShape(5U, 5U, 32U, 4U)), make("Bias", TensorShape(4U)), make("Output", TensorShape(9U, 9U, 4U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F32 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer5x1Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer5x1Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x5Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer1x5Dataset(), make("DataType", { DataType::F32 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x7Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(13U, 13U, 32U)), make("Weight", TensorShape(1U, 7U, 32U, 4U)), make("Bias", TensorShape(4U)), make("Output", TensorShape(13U, 11U, 4U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 2)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F32 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer7x1Dataset(), make("DataType", { DataType::F32 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunSmall, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallWinogradConvolutionLayer3x3Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer3x3DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(8U, 8U, 32U)), make("Weight", TensorShape(3U, 3U, 32U, 6U)), make("Bias", TensorShape(6U)), make("Output", TensorShape(6U, 6U, 6U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F16 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer3x1Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer3x1DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x3Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer1x3DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer5x5Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer5x5DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(13U, 13U, 32U)), make("Weight", TensorShape(5U, 5U, 32U, 6U)), make("Bias", TensorShape(6U)), make("Output", TensorShape(9U, 9U, 6U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F16 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer5x1Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer5x1DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x5Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer1x5DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NCHW, DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer1x7Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunLarge, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(datasets::LargeWinogradConvolutionLayer1x7DatasetFp16Subset(), make("DataType", { DataType::F16 }), make("ActivationInfo", { ActivationLayerInfo() }), make("DataLayout", { DataLayout::NHWC }))) |
|
| FIXTURE_DATA_TEST_CASE (RunActivations, CLWinogradConvolutionLayerFastMathFixture16, framework::DatasetMode::NIGHTLY, combine(make("Input", TensorShape(13U, 13U, 32U)), make("Weight", TensorShape(1U, 7U, 32U, 6U)), make("Bias", TensorShape(6U)), make("Output", TensorShape(13U, 7U, 6U)), make("PadStrideInfo", PadStrideInfo(1, 1, 0, 0)), make("Dilation", Size2D(1U, 1U)), make("DataType", { DataType::F16 }), ActivationFunctionsDataset, make("DataLayout", { DataLayout::NHWC }))) |
|
| combine (datasets::SmallWinogradConvolutionLayer7x1Dataset(), make("DataType", { DataType::F16 }), ActivationFunctionsSmallDataset, make("DataLayout", { DataLayout::NHWC }))) |
|