ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Knob.cpp File Reference
#include "Knob.h"
#include <pepper/strcast.h>
#include <iostream>
#include <string>
#include "Knob.lst"

Go to the source code of this file.

Namespaces

namespace  moco
 
namespace  moco::tf
 

Macros

#define KNOB_BOOL(NAME, DEFAULT, DESC)
 

Macro Definition Documentation

◆ KNOB_BOOL

#define KNOB_BOOL (   NAME,
  DEFAULT,
  DESC 
)
Value:
template <> typename KnobTrait<Knob::NAME>::ValueType get<Knob::NAME>(void) \
{ \
static typename KnobTrait<Knob::NAME>::ValueType value = \
::knob_load<typename KnobTrait<Knob::NAME>::ValueType>(::knob_loader(), #NAME, DEFAULT); \
return value; \
}

Definition at line 112 of file Knob.cpp.

114 { \
115 static typename KnobTrait<Knob::NAME>::ValueType value = \
116 ::knob_load<typename KnobTrait<Knob::NAME>::ValueType>(::knob_loader(), #NAME, DEFAULT); \
117 return value; \
118 }