Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinthesun committed Apr 26, 2019
1 parent 8cce872 commit 060309b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/relay/op/nn/pooling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ bool Pool2DRel(const Array<Type>& types,

CHECK(data != nullptr);
const auto dshape = data->shape;
CHECK_NE(dshape.size(), 0);
CHECK_GE(dshape.size(), 2U)
<< "Pool2D only support input >= 2-D: input must have height and width";
const auto param = attrs.as<AttrType>();
Expand Down Expand Up @@ -284,7 +283,6 @@ bool GlobalPool2DRel(const Array<Type>& types,
const auto* data = types[0].as<TensorTypeNode>();
if (data == nullptr) { return false; }
const auto dshape = data->shape;
CHECK_NE(dshape.size(), 0);
CHECK_GE(dshape.size(), 2U)
<< "Pool2D only support input >= 2-D: input must have height and width";
const auto param = attrs.as<GlobalPool2DAttrs>();
Expand Down Expand Up @@ -405,10 +403,9 @@ bool AdaptivePool2DRel(const Array<Type>& types,
const auto* data = types[0].as<TensorTypeNode>();
if (data == nullptr) { return false; }
const auto dshape = data->shape;
CHECK_NE(dshape.size(), 0);
CHECK_GE(dshape.size(), 2U)
<< "Pool2D only support input >= 2-D: input must have height and width";
const auto param = attrs.as<AdaptivePool2DAttrs>();
const auto* param = attrs.as<AdaptivePool2DAttrs>();
CHECK(param != nullptr);

Layout layout(param->layout);
Expand Down

0 comments on commit 060309b

Please sign in to comment.