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

Function AveragePool2dInt8PaddingSameTest

delegate/test/Pooling2dTest.cpp:432–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432void AveragePool2dInt8PaddingSameTest(const std::vector<armnn::BackendId>& backends = {})
433{
434 // Set input data
435 std::vector<int32_t> inputShape { 1, 3, 4, 1 };
436 std::vector<int32_t> outputShape { 1, 2, 2, 1 };
437
438 std::vector<int8_t > inputValues = { -5, 8, -10, 7,
439 8, 12, -15, 2,
440 3, -4, -1, -11 };
441
442 std::vector<int8_t> expectedOutputValues = { 6, -4, -1, -6 };
443
444 Pooling2dTest<int8_t>(tflite::BuiltinOperator_AVERAGE_POOL_2D,
445 ::tflite::TensorType_INT8,
446 inputShape,
447 outputShape,
448 inputValues,
449 expectedOutputValues,
450 backends,
451 ::tflite::Padding_SAME,
452 2,
453 2,
454 2,
455 2,
456 tflite::ActivationFunctionType_NONE,
457 2.5f,
458 1);
459}
460
461void AveragePool2dFP32ReluTest(const std::vector<armnn::BackendId>& backends = {})
462{

Callers 1

Pooling2dTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected