Updated on 2022-03-13 GMT+08:00

REGISTER_NN_NODE

NN node registration macro.

   /*
    * @brief NNNode   Registration macro. The service NN node is used in the implementation class.
    * REGISTER_ENGINE(desc, clazz) is used directly.
    * @param [in] desc   Object of the NN node description information
    * @param [in] clazz  Class name of the NN node
    */
#define REGISTER_NN_NODE(desc, name) \
    std::shared_ptr<IAINNNode> NNNode_##name##_Creator() \
    { \
        return std::make_shared<name>(); \
    } \
    AINNNodeRegisterar g_nnnode_##name##_creator(desc,NNNode_##name##_Creator)