Skip to content

Commit 9346f47

Browse files
committed
flownet2: code refinement - comment out the unused variables.
1 parent 475f5d1 commit 9346f47

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/caffe/layers/channel_norm_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void ChannelNormLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
3131
CHECK_EQ(top.size(), 1) << "ChannelNormLayer outputs one blob.";
3232

3333
const int num = bottom[0]->num();
34-
const int channels = bottom[0]->channels();
34+
//const int channels = bottom[0]->channels();
3535
const int height = bottom[0]->height();
3636
const int width = bottom[0]->width();
3737

src/caffe/layers/flow_warp_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void FlowWarpLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
127127
const int wh_size = width * height;
128128
const int whc_size = width * height * channels;
129129

130-
const Dtype* warped_data = top[0]->cpu_data(); // dest
130+
//const Dtype* warped_data = top[0]->cpu_data(); // dest
131131
const Dtype* warped_diff = top[0]->cpu_diff(); // dest
132132
const Dtype* image_data = bottom[0]->cpu_data(); // source image
133133
Dtype* image_diff = bottom[0]->mutable_cpu_diff(); // source image

src/caffe/layers/flow_warp_layer.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void FlowWarpLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom, const
362362
int channels = top[0]->channels();
363363
int num = top[0]->num();
364364
const int wh_size = width * height;
365-
const int whc_size = width * height * channels;
365+
//const int whc_size = width * height * channels;
366366

367367
Dtype* warped_data = top[0]->mutable_gpu_data(); // dest
368368
const Dtype* image_data = bottom[0]->gpu_data(); // source image
@@ -466,7 +466,7 @@ void FlowWarpLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,
466466
int channels = top[0]->channels();
467467
int num = top[0]->num();
468468
const int wh_size = width * height;
469-
const int whc_size = width * height * channels;
469+
//const int whc_size = width * height * channels;
470470

471471
const Dtype* warped_data = top[0]->gpu_data(); // dest
472472
const Dtype* warped_diff = top[0]->gpu_diff(); // dest

0 commit comments

Comments
 (0)