// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include #include #include namespace armnn { // Base class template providing an implementation of the Constant layer common to all data types. template class RefConstantWorkload : public TypedWorkload { public: RefConstantWorkload(const ConstantQueueDescriptor& descriptor, const WorkloadInfo& info) : TypedWorkload(descriptor, info) , m_RanOnce(false) { } using TypedWorkload::m_Data; using TypedWorkload::TypedWorkload; virtual void Execute() const override; private: mutable bool m_RanOnce; }; using RefConstantFloat32Workload = RefConstantWorkload; using RefConstantUint8Workload = RefConstantWorkload; using RefConstantInt32Workload = RefConstantWorkload; } //namespace armnn