73 namespace perception {
76 template <
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_;
Definition: roipooling_layer.h:77
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
void ForwardGPU(const std::vector< std::shared_ptr< base::Blob< Dtype >>> &bottom, const std::vector< std::shared_ptr< base::Blob< Dtype >>> &top)
void ForwardCPU(const std::vector< std::shared_ptr< base::Blob< Dtype >>> &bottom, const std::vector< std::shared_ptr< base::Blob< Dtype >>> &top)
A wrapper around SyncedMemory holders serving as the basic computational unit for images...
Definition: blob.h:88
void Reshape(const int num, const int channels, const int height, const int width)
Deprecated; use Reshape(const std::vector<int>& shape).
ROIPoolingLayer(int pooled_h, int pooled_w, bool use_floor, float spatial_scale, int channels, int max_objs=1000)
Definition: roipooling_layer.h:79