class_docstr: Grid Generator of RARE, which produces P_prime by multiplying T with P 
class_docstr_tok: ["Grid","Generator","of","RARE",",","which","produces","P_prime","by","multiplying","T","with","P"]
code: def _build_P(self, I_r_width, I_r_height):
      I_r_grid_x = (
          np.arange(-I_r_width, I_r_width, 2) + 1.0
      ) / I_r_width  # self.I_r_width
      I_r_grid_y = (
          np.arange(-I_r_height, I_r_height, 2) + 1.0
      ) / I_r_height  # self.I_r_height
      P = np.stack(  # self.I_r_width x self.I_r_height x 2
          np.meshgrid(I_r_grid_x, I_r_grid_y), axis=2
      )
      return P.reshape([-1, 2])
  
file_path: EasyOCR/trainer/modules/transformation.py
imports: import numpy
  import torch
  import torch.nn
  import torch.nn.functional
label_desc: Use image node_id 4 for calling the GridGenerator obj's underlying member method code with example usage: obj._build_P(I_r_width, I_r_height) and returns: P