void InferenceEngineProfiler::Start(const unsigned int type)
{
- if (IE_PROFILER_MIN >= type && IE_PROFILER_MAX <= type) {
+ if (IE_PROFILER_MIN >= type || IE_PROFILER_MAX <= type) {
LOGE("Invalid profiler type.");
return;
}
void InferenceEngineProfiler::Stop(const unsigned int type, const char *func_name)
{
- if (IE_PROFILER_MIN >= type && IE_PROFILER_MAX <= type) {
+ if (IE_PROFILER_MIN >= type || IE_PROFILER_MAX <= type) {
LOGE("Invalid profiler type.");
return;
}
void InferenceEngineProfiler::Dump(const unsigned int dump_type)
{
- if (IE_PROFILER_DUMP_MIN >= dump_type && IE_PROFILER_DUMP_MAX <= dump_type) {
+ if (IE_PROFILER_DUMP_MIN >= dump_type || IE_PROFILER_DUMP_MAX <= dump_type) {
LOGE("Invalid profiler dump type.");
return;
}