class_docstr: RoI align pooling layer for rotated proposals.
  
      
code: def __init__(
      self,
      out_size,
      spatial_scale,
      sample_num=0,
      aligned=True,
      clockwise=False,
  ):
      super(RoIAlignRotated, self).__init__()
  
      if isinstance(out_size, int):
          self.out_h = out_size
          self.out_w = out_size
      elif isinstance(out_size, tuple):
          assert len(out_size) == 2
          assert isinstance(out_size[0], int)
          assert isinstance(out_size[1], int)
          self.out_h, self.out_w = out_size
      else:
          raise TypeError(
              '"out_size" must be an integer or tuple of integers'
          )
  
      self.spatial_scale = float(spatial_scale)
      self.sample_num = int(sample_num)
      self.aligned = aligned
      self.clockwise = clockwise
  
imports: import paddle
  import paddle.nn
  from paddle.utils.cpp_extension import load
label_desc: Use image node_id 1 to create a new RoIAlignRotated object from inherited base classes: nn with example: obj = RoIAlignRotated(out_size, spatial_scale, sample_num, aligned, clockwise)