aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/backends/RefWorkloads/RefResizeBilinearFloat32Workload.cpp
blob: 8ad7a762987235ae1136b4fbe66c5cb960e8192f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//

#include "RefResizeBilinearFloat32Workload.hpp"

#include "RefWorkloadUtils.hpp"
#include "ResizeBilinear.hpp"

#include "Profiling.hpp"

namespace armnn
{

void RefResizeBilinearFloat32Workload::Execute() const
{
    ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefResizeBilinearFloat32Workload_Execute");

    const TensorInfo& inputInfo = GetTensorInfo(m_Data.m_Inputs[0]);
    const TensorInfo& outputInfo = GetTensorInfo(m_Data.m_Outputs[0]);

    ResizeBilinear(GetInputTensorDataFloat(0, m_Data),
        inputInfo,
        GetOutputTensorDataFloat(0, m_Data),
        outputInfo);
}

} //namespace armnn