src/graph/backends/GLES/GCFunctionsFactory.cpp
std::unique_ptr<IFunction> create_pooling_layer(PoolingLayerNode &node)
{
    ARM_COMPUTE_LOG_GRAPH_VERBOSE(
        "Creating GC PoolingLayer node with ID : " << node.id() << " and Name: " << node.name() << std::endl);
    ARM_COMPUTE_ERROR_ON(node.num_inputs() != 1);
    ARM_COMPUTE_ERROR_ON(node.num_outputs() != 1);

    // Extract IO and info
    IGCTensor             *input     = get_backing_tensor(node.input(0));
    IGCTensor             *output    = get_backing_tensor(node.output(0));
    const PoolingLayerInfo pool_info = node.pooling_info();
    ARM_COMPUTE_ERROR_ON(input == nullptr);
    ARM_COMPUTE_ERROR_ON(output == nullptr);

    // Create and configure function
    auto func = support::cpp14::make_unique<GCPoolingLayer>();
    func->configure(input, output, pool_info);

    // Log info
    ARM_COMPUTE_LOG_GRAPH_INFO("Instantiated GCPoolingLayer"
                               << " Data Type: " << input->info()->data_type()
                               << " Input shape: " << input->info()->tensor_shape()
                               << " Output shape: " << output->info()->tensor_shape()
                               << " Pooling info: " << pool_info.pool_type()
                               << std::endl);

    return std::move(func);
}
/** Create a backend pooling layer function
 *
 * @param[in] node Node to create the backend function for
 *
 * @return Backend pooling layer function
 */
Create a backend pooling layer function
@param[in] node Node to create the backend function for

@return Backend pooling layer function
Create a backend pooling layer function @param [ in ] node Node to create the backend function for @return Backend pooling layer function
std::unique_ptr<IFunction> create_pooling_layer(PoolingLayerNode &node)
{
    ARM_COMPUTE_LOG_GRAPH_VERBOSE(
        "Creating GC PoolingLayer node with ID : " << node.id() << " and Name: " << node.name() << std::endl);
    ARM_COMPUTE_ERROR_ON(node.num_inputs() != 1);
    ARM_COMPUTE_ERROR_ON(node.num_outputs() != 1);
    IGCTensor             *input     = get_backing_tensor(node.input(0));
    IGCTensor             *output    = get_backing_tensor(node.output(0));
    const PoolingLayerInfo pool_info = node.pooling_info();
    ARM_COMPUTE_ERROR_ON(input == nullptr);
    ARM_COMPUTE_ERROR_ON(output == nullptr);
    auto func = support::cpp14::make_unique<GCPoolingLayer>();
    func->configure(input, output, pool_info);
    ARM_COMPUTE_LOG_GRAPH_INFO("Instantiated GCPoolingLayer"
                               << " Data Type: " << input->info()->data_type()
                               << " Input shape: " << input->info()->tensor_shape()
                               << " Output shape: " << output->info()->tensor_shape()
                               << " Pooling info: " << pool_info.pool_type()
                               << std::endl);
    return std::move(func);
}
std :: unique_ptr < IFunction > create_pooling_layer ( PoolingLayerNode & node ) { ARM_COMPUTE_LOG_GRAPH_VERBOSE ( " " << node . id ( ) << " " << node . name ( ) << std :: endl ) ; ARM_COMPUTE_ERROR_ON ( node . num_inputs ( ) != 1 ) ; ARM_COMPUTE_ERROR_ON ( node . num_outputs ( ) != 1 ) ; IGCTensor * input = get_backing_tensor ( node . input ( 0 ) ) ; IGCTensor * output = get_backing_tensor ( node . output ( 0 ) ) ; const PoolingLayerInfo pool_info = node . pooling_info ( ) ; ARM_COMPUTE_ERROR_ON ( input == nullptr ) ; ARM_COMPUTE_ERROR_ON ( output == nullptr ) ; auto func = support :: cpp14 :: make_unique < GCPoolingLayer > ( ) ; func -> configure ( input , output , pool_info ) ; ARM_COMPUTE_LOG_GRAPH_INFO ( " " << " " << input -> info ( ) -> data_type ( ) << " " << input -> info ( ) -> tensor_shape ( ) << " " << output -> info ( ) -> tensor_shape ( ) << " " << pool_info . pool_type ( ) << std :: endl ) ; return std :: move ( func ) ; }
Create a backend pooling layer function
 @param[in] node Node to create the backend function for
Create a backend pooling layer function @param [ in ] node Node to create the backend function for
// Extract IO and info // Create and configure function // Log info