24.08
|
Go to the documentation of this file.
30 Initialize(preferredBackends, deviceSpec);
74 availablePreferredBackends.push_back(backend);
77 return availablePreferredBackends;
88 const DeviceSpec& spec = *PolymorphicDowncast<const DeviceSpec*>(&deviceSpec);
92 template<
typename Collection>
93 bool IsBackendInCollection(
const BackendId& backend,
const Collection& collection)
const
95 return std::find(collection.begin(), collection.end(), backend) != collection.end();
BackendIdSet m_IgnoredBackends
@ CpuRef
CPU Execution: Reference C++ kernels.
std::unordered_set< BackendId > BackendIdSet
BackendIdSet m_SelectedBackends
bool IsBackendIgnored(const BackendId &backend) const
BackendIdSet m_SupportedBackends
BackendSettings(const BackendIdVector &preferredBackends, const IDeviceSpec &deviceSpec)
BackendIdVector GetAvailablePreferredBackends() const
BackendSettings()=default
BackendSettings(const BackendSettings &other)
bool IsCpuRefUsed() const
bool IsBackendSelected(const BackendId &backend) const
Copyright (c) 2021 ARM Limited and Contributors.
Device specific knowledge to be passed to the optimizer.
std::vector< BackendId > BackendIdVector
bool IsBackendSupported(const BackendId &backend) const
BackendIdVector m_PreferredBackends
bool IsBackendPreferred(const BackendId &backend) const
virtual const BackendIdSet & GetSupportedBackends() const override