-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
When i compiled at Windows using Visual Studio 2017, C4703 error was occurred.
So, I modified prune.cpp as below.
diff --git a/src/prune.cpp b/src/prune.cpp
index 6ccf919..1efcff0 100644
--- a/src/prune.cpp
+++ b/src/prune.cpp
@@ -522,7 +522,7 @@ void prune_yolov3(char *cfgfile, char *weightfile,float prune_ratio,int shuffle,
computer_threshold_for_each_layer(net,shortcut_layer_indexs,thresh,local_prune_ratio,thresholds,prune_layer_indexs,reverse);
vector<layer_info> prune_layer_list;
cout << "network slimming starting" << endl;
- float *prev_mask;
+ float *prev_mask = nullptr;
int prev_channel_number;
for(int i=0; i < net.n;++i)
{
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels