We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd894c2 + 7462692 commit bd3f976Copy full SHA for bd3f976
paddle/gserver/layers/ConvProjection.cpp
@@ -130,6 +130,10 @@ void ConvProjection::reshapeTensorDesc(int batchSize) {
130
void ConvProjection::reshape(int batchSize) {
131
size_t width = calOutputSize();
132
CHECK_EQ(width, out_->value->getWidth());
133
+ CHECK_EQ(channels_ * imageH_ * imageW_, in_->value->getWidth())
134
+ << "Wrong input size for convolution"
135
+ << " channels=" << channels_ << " imageH=" << imageH_
136
+ << " imageW=" << imageW_ << " inputSize=" << in_->value->getWidth();
137
138
isSelectAlgo_ = (batchSize == batchNum_);
139
batchNum_ = batchSize;
0 commit comments