Skip to content

Commit 781a7f2

Browse files
authored
Merge pull request #2 from longriyao/patch-1
give the output shape of shuffle
2 parents 9437fb7 + 34d905d commit 781a7f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shuffle_channel_layer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ void ShuffleChannelLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype> *> &bottom,
1111
group_ = this->layer_param_.shuffle_channel_param().group();
1212
CHECK_GT(group_, 0) << "group must be greater than 0";
1313
temp_blob_.ReshapeLike(*bottom[0]);
14+
top[0]->ReshapeLike(*bottom[0]);
1415
}
1516

1617
template <typename Dtype>

0 commit comments

Comments
 (0)