24.08
|
Go to the documentation of this file.
11 #include <unordered_set>
41 default:
return "Unknown";
47 inline std::ostream&
operator<<(std::ostream& os,
const std::vector<Compute>& compute)
49 for (
const Compute& comp : compute)
58 inline std::ostream&
operator<<(std::ostream& os,
const std::set<Compute>& compute)
60 for (
const Compute& comp : compute)
93 operator std::string()
const {
return m_Id; }
111 return m_Id == other.m_Id;
116 template <
typename O>
120 return *
this == temp;
123 template <
typename O>
126 return !(*
this == other);
131 return m_Id < other.m_Id;
138 const std::string&
Get()
const {
return m_Id; }
160 std::hash<std::string> hasher;
161 return hasher(
id.Get());
173 static const BackendId BACKEND_ID(
"ARMNN");
182 template <
template <
typename...>
class TContainer,
typename... TContainerTemplateArgs>
187 for (
const auto&
id : ids) { os <<
id <<
" "; }
@ GpuAcc
GPU Execution: OpenCL: ArmCompute.
bool operator==(const BackendId &other) const
bool operator!=(const O &other) const
@ CpuRef
CPU Execution: Reference C++ kernels.
std::unordered_set< BackendId > BackendIdSet
BackendId & operator=(Compute compute)
Deprecated function that will be removed together with the Compute enum.
std::size_t operator()(const armnn::BackendId &id) const noexcept
BackendId(Compute compute)
Deprecated function that will be removed together with the Compute enum.
void swap(OriginsDescriptor &first, OriginsDescriptor &second)
bool operator==(const O &other) const
comparison against objects from which the BackendId can be constructed
BackendId & operator=(const BackendId &other)=default
Compute
The Compute enum is now deprecated and it is now being replaced by BackendId.
std::ostream & operator<<(std::ostream &os, const std::vector< Compute > &compute)
Deprecated function that will be removed together with the Compute enum.
BackendId(const std::string &id)
const std::string & Get() const
BackendId & operator=(const std::string &other)
BackendId(const char *id)
@ CpuAcc
CPU Execution: NEON: ArmCompute.
Copyright (c) 2021 ARM Limited and Contributors.
bool operator<(const BackendId &other) const
std::vector< BackendId > BackendIdVector
constexpr char const * GetComputeDeviceAsCString(Compute compute)
Deprecated function that will be removed together with the Compute enum.
mapbox::util::variant< std::vector< float >, std::vector< int >, std::vector< unsigned char >, std::vector< int8_t > > TContainer