Apply the max roi pooling. [Girshick, 2015].

The rois should be packed with a shape like \((N, 5)\), where \(N\) is the number of RoIs.

Each RoI is a 5d sequence containing (batch_index, x1, y1, x2, y2).

  • inputs (Sequence[dragon.Tensor]) – The tensor feature and rois.
  • pooled_h (int, required) – The output height.
  • pooled_w (int, required) – The output width.
  • spatial_scale (float, optional, default=1.) – The input scale to the size of rois.

dragon.Tensor – The output tensor.