21 : m_SupportedBackends{supportedBackends} {}
27 return m_SupportedBackends;
32 m_SupportedBackends.insert(backendIds.begin(), backendIds.end());
35 m_DynamicBackends.insert(backendIds.begin(), backendIds.end());
41 for (
const auto&
id : m_DynamicBackends)
43 m_SupportedBackends.erase(
id);
45 m_DynamicBackends.clear();
50 return m_DynamicBackends;
DeviceSpec(const BackendIdSet &supportedBackends)
void ClearDynamicBackends()
virtual const BackendIdSet & GetSupportedBackends() const override
void AddSupportedBackends(const BackendIdSet &backendIds, bool isDynamic=false)
const BackendIdSet & GetDynamicBackends() const
std::unordered_set< BackendId > BackendIdSet
Device specific knowledge to be passed to the optimizer.