MCPcopy Create free account
hub / github.com/ARM-software/armnn / DoOp

Method DoOp

include/armnn/BackendOptions.hpp:147–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 private:
146 template<typename Func>
147 void DoOp(const Var& other, Func func)
148 {
149 if (other.IsBool())
150 {
151 func(m_Vals.b, other.m_Vals.b);
152 }
153 else if (other.IsInt())
154 {
155 func(m_Vals.i, other.m_Vals.i);
156 }
157 else if (other.IsUnsignedInt())
158 {
159 func(m_Vals.u, other.m_Vals.u);
160 }
161 else if (other.IsFloat())
162 {
163 func(m_Vals.f, other.m_Vals.f);
164 }
165 else if (other.IsString())
166 {
167 func(m_Vals.s, other.m_Vals.s);
168 }
169 }
170
171 template<typename Destructable>
172 void Destruct(Destructable& d)

Callers

nothing calls this directly

Calls 5

IsBoolMethod · 0.80
IsIntMethod · 0.80
IsUnsignedIntMethod · 0.80
IsFloatMethod · 0.80
IsStringMethod · 0.80

Tested by

no test coverage detected