#if NCNN_STRING // register custom layer by layer type name // return 0 if success intregister_custom_layer(constchar* type, layer_creator_func creator); #endif// NCNN_STRING // register custom layer by layer type // return 0 if success intregister_custom_layer(int index, layer_creator_func creator);
#if NCNN_STDIO #if NCNN_STRING // load network structure from plain param file // return 0 if success intload_param(FILE* fp); intload_param(constchar* protopath); #endif// NCNN_STRING // load network structure from binary param file // return 0 if success intload_param_bin(FILE* fp); intload_param_bin(constchar* protopath);
// load network weight data from model file // return 0 if success intload_model(FILE* fp); intload_model(constchar* modelpath); #endif// NCNN_STDIO
// load network structure from external memory // memory pointer must be 32-bit aligned // return bytes consumed intload_param(constunsignedchar* mem);
// reference network weight data from external memory // weight data is not copied but referenced // so external memory should be retained when used // memory pointer must be 32-bit aligned // return bytes consumed intload_model(constunsignedchar* mem);
// unload network structure and weight data voidclear();
// construct an Extractor from network Extractor create_extractor()const;