diff --git a/paddle/cuda/include/hl_matrix.h b/paddle/cuda/include/hl_matrix.h index a37921b7493e34068369ef23032da0401b5c23d0..c7f25109972195fb56b9e96c4b68d952363e6338 100644 --- a/paddle/cuda/include/hl_matrix.h +++ b/paddle/cuda/include/hl_matrix.h @@ -241,7 +241,7 @@ extern void hl_matrix_rotate( * @param[in] paddingD padding in the depth. * @param[in] paddingH padding in the height. * @param[in] paddingW padding in the width. - * @param[out] matDst output matrix. + * @param[out] dataDst output matrix. * */ extern void hl_matrix_vol2Col(const real* dataSrc, diff --git a/paddle/gserver/layers/Conv3DLayer.cpp b/paddle/gserver/layers/Conv3DLayer.cpp index db907bbab1c283bb0ff4679410d8f03619aeb911..7cc9937cce37cbbc4640fbb88312841c23b757c0 100644 --- a/paddle/gserver/layers/Conv3DLayer.cpp +++ b/paddle/gserver/layers/Conv3DLayer.cpp @@ -53,18 +53,12 @@ bool Conv3DLayer::init(const LayerMap &layerMap, size_t Conv3DLayer::getSize() { CHECK_NE(inputLayers_.size(), 0UL); - // imgSizeH_.clear(); - // imgSizeW_.clear(); - // imgSizeD_.clear(); outputH_.clear(); outputW_.clear(); outputD_.clear(); N_.clear(); size_t layerSize = 0; for (size_t i = 0; i < inputLayers_.size(); ++i) { - // imgSizeH_.push_back(inputLayers_[i]->getOutput().getFrameHeight()); - // imgSizeW_.push_back(inputLayers_[i]->getOutput().getFrameWidth()); - // imgSizeD_.push_back(inputLayers_[i]->getOutput().getFrameDepth()); outputW_.push_back(outputSize( imgSizeW_[i], filterSize_[i], padding_[i], stride_[i], true)); outputH_.push_back(outputSize( diff --git a/paddle/gserver/layers/DeConv3DLayer.cpp b/paddle/gserver/layers/DeConv3DLayer.cpp index b18c06e36c897ac1f0e2850562c9afade7c7dcc2..7d5c772c89d260264a59f4cc4439bb8a44c605a4 100644 --- a/paddle/gserver/layers/DeConv3DLayer.cpp +++ b/paddle/gserver/layers/DeConv3DLayer.cpp @@ -53,9 +53,6 @@ bool DeConv3DLayer::init(const LayerMap &layerMap, size_t DeConv3DLayer::getSize() { CHECK_NE(inputLayers_.size(), 0UL); - // imgSizeH_.clear(); - // imgSizeW_.clear(); - // imgSizeD_.clear(); outputH_.clear(); outputW_.clear(); outputD_.clear(); @@ -63,9 +60,6 @@ size_t DeConv3DLayer::getSize() { NOut_.clear(); size_t layerSize = 0; for (size_t i = 0; i < inputLayers_.size(); ++i) { - // imgSizeH_.push_back(inputLayers_[i]->getOutput().getFrameHeight()); - // imgSizeW_.push_back(inputLayers_[i]->getOutput().getFrameWidth()); - // imgSizeD_.push_back(inputLayers_[i]->getOutput().getFrameDepth()); outputW_.push_back( imageSize(imgSizeW_[i], filterSize_[i], padding_[i], stride_[i], true)); outputH_.push_back(imageSize(