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.
1 parent 5ac16e5 commit bcd280dCopy full SHA for bcd280d
paddle/gserver/layers/ConvProjection.cpp
@@ -130,6 +130,12 @@ 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_
136
+ << " imageH=" << imageH_
137
+ << " imageW=" << imageW_
138
+ << " inputSize=" << in_->value->getWidth();
139
140
isSelectAlgo_ = (batchSize == batchNum_);
141
batchNum_ = batchSize;
0 commit comments