Skip to content

Commit

Permalink
Update CudnnConvLayer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
qingqing01 authored Sep 23, 2016
1 parent 95da095 commit c1c07bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paddle/gserver/layers/CudnnConvLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ void CudnnConvLayer::reshape(int batchSize) {
getOutput().setFrameHeight(outputH_);
getOutput().setFrameWidth(outputW_);

// if the batchSize remains the same, set isSelectAlgo_ true.
// Otherwise, set isSelectAlgo_ false and select algo again.
isSelectAlgo_ = (batchSize == batchNum_);
batchNum_ = batchSize;

Expand Down

0 comments on commit c1c07bb

Please sign in to comment.