| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 
 | /* in class RoI.forward() of roi_module.py# x: tensor(n, 512, hh, ww)
 
 
 
 
 
 
 
 
 args = [x.data_ptr(), rois.data_ptr(),
 output.data_ptr(),
 self.argmax_data.data_ptr(),
 self.spatial_scale, C, H, W,
 self.outh, self.outw,
 output.numel()]
 
 
 
 
 
 
 stream = Stream(ptr=torch.cuda.current_stream().cuda_stream)
 
 
 
 self.forward_fn(args=args,
 block=(CUDA_NUM_THREADS, 1, 1),
 grid=(GET_BLOCKS(output.numel()), 1, 1),
 stream=stream)
 */
 
 |