aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/DeviceSpec.hpp
blob: 32264706fd7e0e612e819ba06355200ef7ed8806 (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
34
35
36
37
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once

#include <armnn/Types.hpp>
#include <set>
#include <vector>

namespace armnn
{

class DeviceSpec : public IDeviceSpec
{
public:
    DeviceSpec(const BackendIdSet& supportedBackends)
        : m_SupportedBackends{supportedBackends} {}

    virtual ~DeviceSpec() {}

    virtual const BackendIdSet& GetSupportedBackends() const override
    {
        return m_SupportedBackends;
    }

    void AddSupportedBackends(const BackendIdSet& backendIds)
    {
        m_SupportedBackends.insert(backendIds.begin(), backendIds.end());
    }

private:
    DeviceSpec() = delete;
    BackendIdSet m_SupportedBackends;
};

} // namespace armnn