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 4948f7b commit b5c9209Copy full SHA for b5c9209
paddle/fluid/operators/conv_op.cc
@@ -55,7 +55,7 @@ void ConvOp::InferShape(framework::InferShapeContext* ctx) const {
55
std::vector<int64_t> output_shape({in_dims[0], filter_dims[0]});
56
for (size_t i = 0; i < strides.size(); ++i) {
57
PADDLE_ENFORCE(in_dims[i + 2] + 2 * paddings[i] -
58
- (dilations[i] * (filter_dims[i + 2] - 1) + 1) >
+ (dilations[i] * (filter_dims[i + 2] - 1) + 1) >=
59
0,
60
"Due to the settings of paddings, filter_dims and "
61
"dilations, the output size is less than 0, please check "
0 commit comments