blob: 0ede46d9fb18dbed64eba5052d94d067d267277b (
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
30
31
32
33
|
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#pragma once
#include "backends/Workload.hpp"
#include "backends/WorkloadData.hpp"
#include <armnn/Types.hpp>
namespace armnn
{
// Base class template providing an implementation of the Constant layer common to all data types
template <armnn::DataType DataType>
class RefBaseConstantWorkload : public TypedWorkload<ConstantQueueDescriptor, DataType>
{
public:
RefBaseConstantWorkload(const ConstantQueueDescriptor& descriptor, const WorkloadInfo& info)
: TypedWorkload<ConstantQueueDescriptor, DataType>(descriptor, info)
, m_RanOnce(false)
{
}
virtual void Execute() const override;
private:
mutable bool m_RanOnce;
};
} //namespace armnn
|