76template <
typename Dtype>
80 float spatial_scale,
int channels,
int max_objs = 1000)
84 pooled_height_(pooled_h),
85 pooled_width_(pooled_w),
86 use_floor_(use_floor),
87 float_max_(
std::numeric_limits<float>::max()),
88 spatial_scale_(spatial_scale) {
89 max_idx_.
Reshape(max_objs, channels, pooled_height_, pooled_width_);
104 const float float_max_;
105 float spatial_scale_;
A wrapper around SyncedMemory holders serving as the basic computational unit for images,...
void Reshape(const int num, const int channels, const int height, const int width)
Deprecated; use Reshape(const std::vector<int>& shape).
void ForwardCPU(const std::vector< std::shared_ptr< base::Blob< Dtype > > > &bottom, const std::vector< std::shared_ptr< base::Blob< Dtype > > > &top)
void ForwardGPU(const std::vector< std::shared_ptr< base::Blob< Dtype > > > &bottom, const std::vector< std::shared_ptr< base::Blob< Dtype > > > &top)
ROIPoolingLayer(int pooled_h, int pooled_w, bool use_floor, float spatial_scale, int channels, int max_objs=1000)