class_docstr: AnchorGenerator by paddle
class_docstr_tok: ["AnchorGenerator","by","paddle"]
code: def _meshgrid(self, x, y, row_major=True):
      yy, xx = paddle.meshgrid(y, x)
      yy = yy.reshape([-1])
      xx = xx.reshape([-1])
      if row_major:
          return xx, yy
      else:
          return yy, xx
  
imports: import math
  import paddle
  import paddle.nn
  import numpy
  from ppdet.core.workspace import register
label_desc: Use image node_id 4 for calling the S2ANetAnchorGenerator obj's underlying member method code with example usage: obj._meshgrid(x, y, row_major) and returns: xx,  yy, yy,  xx