blob: efb2865ebd3d7b554ebe542648bfcc2284d3c448 [file] [log] [blame]
//
// Copyright © 2019 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include "BaseIterator.hpp"
#include <backendsCommon/Workload.hpp>
#include <backendsCommon/WorkloadData.hpp>
namespace armnn
{
class RefElementwiseUnaryWorkload : public BaseWorkload<ElementwiseUnaryQueueDescriptor>
{
public:
using BaseWorkload<ElementwiseUnaryQueueDescriptor>::m_Data;
RefElementwiseUnaryWorkload(const ElementwiseUnaryQueueDescriptor& descriptor, const WorkloadInfo& info);
void PostAllocationConfigure() override;
void Execute() const override;
private:
using InType = float;
using OutType = float;
std::unique_ptr<Decoder<InType>> m_Input;
std::unique_ptr<Encoder<OutType>> m_Output;
};
} // namespace armnn