This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
nihui
/
ncnn
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
46
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
add layer type index member
tags/20190320
nihuini
7 years ago
parent
9f0ae5c779
commit
2672cd437f
2 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
src/layer.cpp
+2
-0
src/layer.h
+ 3
- 1
src/layer.cpp
View File
@@ -223,7 +223,9 @@ Layer* create_layer(int index)
if (!layer_creator)
return 0;
return layer_creator();
Layer* layer = layer_creator();
layer->typeindex = index;
return layer;
}
} // namespace ncnn
+ 2
- 0
src/layer.h
View File
@@ -139,6 +139,8 @@ public:
#endif // NCNN_VULKAN
public:
// layer type index
int typeindex;
#if NCNN_STRING
// layer type name
std::string type;
Write
Preview
Loading…
Cancel
Save