MCPcopy Create free account
hub / github.com/ARM-software/armnn / AveragePool2dUint8PaddingSameTest

Function AveragePool2dUint8PaddingSameTest

delegate/test/Pooling2dTest.cpp:573–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void AveragePool2dUint8PaddingSameTest(const std::vector<armnn::BackendId>& backends = {})
574{
575 // Set input data
576 std::vector<int32_t> inputShape { 1, 3, 4, 1 };
577 std::vector<int32_t> outputShape { 1, 2, 2, 1 };
578
579 std::vector<uint8_t> inputValues = { 5, 8, 10, 7,
580 8, 12, 15, 2,
581 3, 4, 1, 11 };
582
583 std::vector<uint8_t> expectedOutputValues = { 8, 9, 4, 6 };
584
585 Pooling2dTest<uint8_t>(tflite::BuiltinOperator_AVERAGE_POOL_2D,
586 ::tflite::TensorType_UINT8,
587 inputShape,
588 outputShape,
589 inputValues,
590 expectedOutputValues,
591 backends,
592 ::tflite::Padding_SAME,
593 2,
594 2,
595 2,
596 2,
597 tflite::ActivationFunctionType_NONE,
598 2.5f,
599 1);
600}
601
602void AveragePool2dUint8ReluTest(const std::vector<armnn::BackendId>& backends = {})
603{

Callers 1

Pooling2dTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected