Skip to content

Commit

Permalink
fix the windows build error for correlation_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
vera121 committed Sep 14, 2018
1 parent c12a6e3 commit 250d195
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/caffe/layers/correlation_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void CorrelateData(int num, int topwidth, int topheight, int topchannels, int to

for (int n = 0; n < num; ++n)
{
Dtype patch_data[kernel_size * kernel_size * bottomchannels];
Dtype* patch_data = new Dtype[kernel_size * kernel_size * bottomchannels];

for (int y = 0; y < topheight; ++y)
for (int x = 0; x < topwidth; ++x)
Expand Down Expand Up @@ -91,6 +91,7 @@ void CorrelateData(int num, int topwidth, int topheight, int topchannels, int to
top[index + n * topcount] = sum / (float) sumelems;
}
}
delete [] patch_data;
}
// Aggregate
}
Expand Down

0 comments on commit 250d195

Please sign in to comment.