Skip to content

C4703 error was occurred #2

@sounansu

Description

@sounansu

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)
     {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions