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)
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)