Browse Source

move custom_layer_to_index to public (#3294)

tags/20211122
Tijmen Verhulsdonck GitHub 4 years ago
parent
commit
e3aa893dfb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/net.h

+ 1
- 1
src/net.h View File

@@ -61,6 +61,7 @@ public:
// register custom layer by layer type name
// return 0 if success
int register_custom_layer(const char* type, layer_creator_func creator, layer_destroyer_func destroyer = 0, void* userdata = 0);
virtual int custom_layer_to_index(const char* type);
#endif // NCNN_STRING
// register custom layer by layer type
// return 0 if success
@@ -147,7 +148,6 @@ protected:
#if NCNN_STRING
int find_blob_index_by_name(const char* name) const;
int find_layer_index_by_name(const char* name) const;
virtual int custom_layer_to_index(const char* type);
virtual Layer* create_custom_layer(const char* type);
#endif // NCNN_STRING
virtual Layer* create_custom_layer(int index);


Loading…
Cancel
Save