35 : m_IsFastMathEnabled(false), m_NumberOfThreads(0)
37 if (!modelOptions.empty())
39 ParseOptions(modelOptions,
"CpuAcc", [&](std::string name, const BackendOptions::Var& value)
41 if (name ==
"FastMathEnabled")
43 m_IsFastMathEnabled |= ParseBool(value, false);
45 if (name ==
"NumberOfThreads")
47 m_NumberOfThreads |= ParseUnsignedInt(value, 0);
unsigned int GetNumberOfThreads() const
bool IsFastMathEnabled() const
NeonBackendModelContext(const ModelOptions &modelOptions)