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

Function AveragePool2dFP32ReluTest

delegate/test/Pooling2dTest.cpp:461–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void AveragePool2dFP32ReluTest(const std::vector<armnn::BackendId>& backends = {})
462{
463 // Set input data
464 std::vector<int32_t> inputShape { 1, 3, 4, 1 };
465 std::vector<int32_t> outputShape { 1, 2, 3, 1 };
466
467 std::vector<float> inputValues = { -5.0f, 8.0f, -10.0f, 7.0f,
468 -8.0f, 12.0f, -15.0f, 2.0f,
469 3.0f, -4.0f, -1.0f, 11.0f };
470
471 std::vector<float> expectedOutputValues = { 1.75f, 0.0f, 0.0f, 0.75f, 0.0f, 0.0f };
472
473 Pooling2dTest<float>(tflite::BuiltinOperator_AVERAGE_POOL_2D,
474 ::tflite::TensorType_FLOAT32,
475 inputShape,
476 outputShape,
477 inputValues,
478 expectedOutputValues,
479 backends,
480 ::tflite::Padding_VALID,
481 1,
482 1,
483 2,
484 2,
485 ::tflite::ActivationFunctionType_RELU);
486}
487
488void AveragePool2dInt8ReluTest(const std::vector<armnn::BackendId>& backends = {})
489{

Callers 1

Pooling2dTest.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected