Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Adjust op ROIPooling (#3346)
Browse files Browse the repository at this point in the history
* Adjust ROIPolling

* Fixed comment
  • Loading branch information
Mateusz Bencer authored and diyessi committed Aug 2, 2019
1 parent 0850d23 commit 2aa508b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/ngraph/op/experimental/layers/roi_pooling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ using namespace ngraph;
const string op::ROIPooling::type_name{"ROIPooling"};

op::ROIPooling::ROIPooling(const shared_ptr<Node>& input,
const std::shared_ptr<Node>& coords,
const shared_ptr<Node>& coords,
const Shape& output_size,
const float spatial_scale,
const std::string& kind)
const string& method)
: Op(check_single_output_args({input, coords}))
, m_output_size(output_size)
, m_spatial_scale(spatial_scale)
, m_kind(kind)
, m_method(method)
{
constructor_validate_and_infer_types();
}
Expand Down Expand Up @@ -69,5 +69,5 @@ shared_ptr<Node> op::ROIPooling::copy_with_new_args(const NodeVector& new_args)
{
check_new_args_count(this, new_args);
return make_shared<ROIPooling>(
new_args.at(0), new_args.at(1), m_output_size, m_spatial_scale, m_kind);
new_args.at(0), new_args.at(1), m_output_size, m_spatial_scale, m_method);
}
8 changes: 4 additions & 4 deletions src/ngraph/op/experimental/layers/roi_pooling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ namespace ngraph
/// \param coords Coordinates of bounding boxes
/// \param output_size Height/Width of ROI output features
/// \param spatial_scale Ratio of input feature map over input image size
/// \param kind Kind of pooling - Max or Bilinear
/// \param method Method of pooling - Max or Bilinear
ROIPooling(const std::shared_ptr<Node>& input,
const std::shared_ptr<Node>& coords,
const Shape& output_size,
const float spatial_scale,
const std::string& kind);
const std::string& method);

void validate_and_infer_types() override;

Expand All @@ -48,11 +48,11 @@ namespace ngraph

const Shape& get_output_size() const { return m_output_size; }
float get_spatial_scale() const { return m_spatial_scale; }
const std::string& get_kind() const { return m_kind; }
const std::string& get_method() const { return m_method; }
private:
Shape m_output_size;
float m_spatial_scale;
std::string m_kind;
std::string m_method;
};
}
}

0 comments on commit 2aa508b

Please sign in to comment.