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
fix create_pipeline crash in vulkan-enabled layer without calling load_param/load_model first (
#5410
)
tags/20240410
nihui
GitHub
2 years ago
parent
3b048d1923
commit
056509a034
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
10 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+10
-3
src/layer.cpp
+ 10
- 3
src/layer.cpp
View File
@@ -362,9 +362,16 @@ public:
#if NCNN_VULKAN
if (layer_vulkan)
{
int ret = layer_vulkan->create_pipeline(opt);
get_layer_properties();
return ret;
if (vkdev)
{
int ret = layer_vulkan->create_pipeline(opt);
get_layer_properties();
return ret;
}
// fallback to cpu layer
delete layer_vulkan;
layer_vulkan = 0;
}
#endif // NCNN_VULKAN
Write
Preview
Loading…
Cancel
Save